Implement Scrollable in iced_pure

This commit is contained in:
Héctor Ramón Jiménez 2022-02-12 15:17:44 +07:00
parent 178914ec23
commit b2670e8752
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
5 changed files with 809 additions and 377 deletions

View file

@ -152,7 +152,7 @@ where
cursor_position,
shell,
&self.on_press,
|| tree.state_mut::<State>(),
|| tree.state.downcast_mut::<State>(),
)
}
@ -174,7 +174,7 @@ where
cursor_position,
self.on_press.is_some(),
self.style_sheet.as_ref(),
|| tree.state::<State>(),
|| tree.state.downcast_ref::<State>(),
);
self.content.as_widget().draw(