summaryrefslogtreecommitdiffstats
path: root/native/src/widget/scrollable.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2023-02-16 16:32:07 +0100
committerLibravatar GitHub <noreply@github.com>2023-02-16 16:32:07 +0100
commite3fbaed12fcb7b2aaa33c42e60cf675d707bc197 (patch)
treedac901e758f1a2c433135b9d63ccc4c7d60934c0 /native/src/widget/scrollable.rs
parent0cb72f69716adc82ad85a0ee7120edb6e653b0c0 (diff)
parent273c9be00f80ba97b0f1330d035a2f9e073464a2 (diff)
downloadiced-e3fbaed12fcb7b2aaa33c42e60cf675d707bc197.tar.gz
iced-e3fbaed12fcb7b2aaa33c42e60cf675d707bc197.tar.bz2
iced-e3fbaed12fcb7b2aaa33c42e60cf675d707bc197.zip
Merge pull request #1695 from nicksenger/widgets/container-ids
Provide widgets IDs to `Operation::container`
Diffstat (limited to 'native/src/widget/scrollable.rs')
-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(