Use a different fit mode for tooltips
This commit is contained in:
parent
f2a48c6b02
commit
8a146e49ca
3 changed files with 39 additions and 19 deletions
|
@ -1,6 +1,6 @@
|
|||
use super::{
|
||||
ContainerStyle, Element, ElementBox, Flex, KeystrokeLabel, MouseEventHandler, Overlay,
|
||||
ParentElement, Text,
|
||||
OverlayFitMode, ParentElement, Text,
|
||||
};
|
||||
use crate::{
|
||||
fonts::TextStyle,
|
||||
|
@ -79,7 +79,7 @@ impl Tooltip {
|
|||
})
|
||||
.boxed(),
|
||||
)
|
||||
.move_to_fit(true)
|
||||
.fit_mode(OverlayFitMode::FlipAlignment)
|
||||
.with_abs_position(state.position.get())
|
||||
.boxed(),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue