summaryrefslogtreecommitdiffstats
path: root/widget/src/overlay/menu.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2024-07-11 08:19:27 +0200
committerLibravatar GitHub <noreply@github.com>2024-07-11 08:19:27 +0200
commitc63a81f68396ccd53ab757f1bdaeee6ca998d168 (patch)
tree20a6ad84a89194835604597b64fca0be8066b44f /widget/src/overlay/menu.rs
parent3c55e076688fd7453e5feb53fccf8139076af584 (diff)
parent8e9099cdd30fb8a830340889f0e89eb2693e1d04 (diff)
downloadiced-c63a81f68396ccd53ab757f1bdaeee6ca998d168.tar.gz
iced-c63a81f68396ccd53ab757f1bdaeee6ca998d168.tar.bz2
iced-c63a81f68396ccd53ab757f1bdaeee6ca998d168.zip
Merge pull request #2269 from dtzxporter/scrollbar-disabled
Add a configuration to scrollable to always show the scrollbar. Adds a disabled style for scrollbar.
Diffstat (limited to '')
-rw-r--r--widget/src/overlay/menu.rs27
1 files changed, 12 insertions, 15 deletions
diff --git a/widget/src/overlay/menu.rs b/widget/src/overlay/menu.rs
index 98efe305..a43c8e8b 100644
--- a/widget/src/overlay/menu.rs
+++ b/widget/src/overlay/menu.rs
@@ -200,21 +200,18 @@ where
class,
} = menu;
- let list = Scrollable::with_direction(
- List {
- options,
- hovered_option,
- on_selected,
- on_option_hovered,
- font,
- text_size,
- text_line_height,
- text_shaping,
- padding,
- class,
- },
- scrollable::Direction::default(),
- );
+ let list = Scrollable::new(List {
+ options,
+ hovered_option,
+ on_selected,
+ on_option_hovered,
+ font,
+ text_size,
+ text_line_height,
+ text_shaping,
+ padding,
+ class,
+ });
state.tree.diff(&list as &dyn Widget<_, _, _>);