Skip to content

Commit

Permalink
Use builder to work inside scrollable
Browse files Browse the repository at this point in the history
  • Loading branch information
tarkah committed Aug 9, 2022
1 parent 6468c12 commit 046e7e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/tooltip/src/main.rs
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down Expand Up @@ -53,6 +53,7 @@ impl Sandbox for Example {
self.position,
)
.gap(10)
.snap_within_viewport(false)
.style(theme::Container::Box);

container(scrollable(tooltip))
Expand Down

0 comments on commit 046e7e0

Please sign in to comment.