diff --git a/examples/tooltip/src/main.rs b/examples/tooltip/src/main.rs index fb95ffad01..80c5083cc1 100644 --- a/examples/tooltip/src/main.rs +++ b/examples/tooltip/src/main.rs @@ -1,6 +1,6 @@ use iced::theme; use iced::widget::tooltip::Position; -use iced::widget::{button, container, tooltip, scrollable}; +use iced::widget::{button, container, scrollable, tooltip}; use iced::{Element, Length, Sandbox, Settings}; pub fn main() -> iced::Result { @@ -53,6 +53,7 @@ impl Sandbox for Example { self.position, ) .gap(10) + .snap_within_viewport(false) .style(theme::Container::Box); container(scrollable(tooltip))