diff options
author | 2023-02-16 16:32:07 +0100 | |
---|---|---|
committer | 2023-02-16 16:32:07 +0100 | |
commit | e3fbaed12fcb7b2aaa33c42e60cf675d707bc197 (patch) | |
tree | dac901e758f1a2c433135b9d63ccc4c7d60934c0 /native/src/widget/scrollable.rs | |
parent | 0cb72f69716adc82ad85a0ee7120edb6e653b0c0 (diff) | |
parent | 273c9be00f80ba97b0f1330d035a2f9e073464a2 (diff) | |
download | iced-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.rs | 19 |
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( |