scrollable: provide ID to operation.container

This commit is contained in:
Nick Senger 2023-02-09 20:57:26 -08:00 committed by Héctor Ramón Jiménez
parent 8c5996c12b
commit 6a683b603d
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -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(