mirror of
https://github.com/danbulant/cushy
synced 2026-06-14 03:51:17 +00:00
These set of changes attempt to resolve a few complexities from the original implementation: sizing and how to dynamically update the content in the list. On the sizing front, manually specifying the width and height of the rows felt like it was more complex than measuring the first widget and using that for all other widgets. This allows a user who wants to force an explicit size to use the Resize widget, while also supporting SizeToFit flows. Additionally, this paves the way for us to add horizontal scrolling to this list, but this commit was already complex enough I held off on that change for now. One workflow I wanted to see supported was going from 0 rows to 50 rows. When the item count comes from a trait, it was pretty complicated to determine how to tell the list to ask for a new row count. By having the user provide a Value<usize>, they can provide a `Dynamic<usize>` that can be updated with a new row count whenever the application determines there is new data. We still need to figure out a way to force a refresh of the data even if the row count doesn't change. Ultimately changing this allowed removing the trait and seemingly simplified the basic usage in addition to adding more flexibility. |
||
|---|---|---|
| .. | ||
| dialog | ||
| styles | ||
| widgets | ||
| animation.rs | ||
| app.rs | ||
| context.rs | ||
| debug.rs | ||
| dialog.rs | ||
| example.rs | ||
| fonts.rs | ||
| graphics.rs | ||
| lib.rs | ||
| names.rs | ||
| styles.rs | ||
| tick.rs | ||
| tree.rs | ||
| utils.rs | ||
| value.rs | ||
| widget.rs | ||
| widgets.rs | ||
| window.rs | ||