summaryrefslogtreecommitdiffstats
path: root/native/src/widget
diff options
context:
space:
mode:
authorLibravatar Nick Senger <dev@nsenger.com>2023-02-09 20:57:26 -0800
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-02-16 16:15:41 +0100
commit6a683b603d555c9d7f589f99738d4151192b91ef (patch)
treeb13d070cb136346a837bfdc81ff5984837804ddc /native/src/widget
parent8c5996c12be5489db0d0f6b0c843965c47ff3a26 (diff)
downloadiced-6a683b603d555c9d7f589f99738d4151192b91ef.tar.gz
iced-6a683b603d555c9d7f589f99738d4151192b91ef.tar.bz2
iced-6a683b603d555c9d7f589f99738d4151192b91ef.zip
scrollable: provide ID to operation.container
Diffstat (limited to 'native/src/widget')
-rw-r--r--native/src/widget/scrollable.rs19
1 files changed, 11 insertions, 8 deletions
diff --git a/native/src/widget/scrollable.rs b/native/src/widget/scrollable.rs
index 82286036..2de722e4 100644
--- a/native/src/widget/scrollable.rs
+++ b/native/src/widget/scrollable.rs
@@ -208,14 +208,17 @@ where
operation.scrollable(state, self.id.as_ref().map(|id| &id.0));
- operation.container(None, &mut |operation| {
- self.content.as_widget().operate(
- &mut tree.children[0],
- layout.children().next().unwrap(),
- renderer,
- operation,
- );
- });
+ operation.container(
+ self.id.as_ref().map(|id| &id.0),
+ &mut |operation| {
+ self.content.as_widget().operate(
+ &mut tree.children[0],
+ layout.children().next().unwrap(),
+ renderer,
+ operation,
+ );
+ },
+ );
}
fn on_event(