Replies: 3 comments
-
|
I have a suggestion. If we modify the Tooltip in this way, it can save us a lot of trouble. rect()
.expanded()
.child(
rect()
.width(Size::Fill)
.height(Size::percent(50.))
.background(Color::CYAN)
.on_mouse_move(|event:Event<MouseEventData>|{
Tooltip::new(event, "Top").position(AttachedPosition::Top).show();
})
)
.child(
rect()
.width(Size::Fill)
.height(Size::percent(50.))
.background(Color::BLUE)
.on_mouse_move(|event:Event<MouseEventData>|{
Tooltip::new(event, "Bottom").position(AttachedPosition::Bottom).show();
})
) |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
TooltipContainerhas noheightproperty, which causes all height-related settings to behave abnormally.Tooltipfor the cyan rectangle is not working.Code:
Beta Was this translation helpful? Give feedback.
All reactions