-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[VisUI] Root group parameter for ToastManager #279
Comments
Not sure how to handle this.
|
Oh, you're right stage's root always has zero size, my mistake.
This should work for both compatibility and resize sakes. |
Yep, I think this will work. I also thought about using PR would be greatly appreciated. Please also update |
@kotcrab good point, will do! |
It turned out that we don't need to pay attention to root group's X/Y because toast positions are relative to a parent and it's totally fine when root is located not in stage's zero or just moving. |
That's great, merged PR. |
Hi, You can add Let me know what you think. |
@jojorabbit oh you're right, I missed that one. Thanks! |
ToastManager
is parametrized withStage
and adds new toasts into stage's root group. But unfortunately this leads to the overlapping problem when there is another kind of generic widgets that are added to the stage just as into the hip. I usually experience it when new dialog appears on the stage (e.g. LML Autumn creates them on the stage's root).From the
ToastManager
code I see this should not be a problem to useGroup
field instead ofStage
to host toasts into it. Like we can keep old constructor, but just extract root group from the stage for an old code compatibility:I can prepare PR if you would like, but I just feel like it's better to discuss first.
The text was updated successfully, but these errors were encountered: