gpui-component/crates
Jason Lee 579c7a3cbb
virtual_list: Fix scrollable size calculate in VirtualList. (#1087)
The `virtual_list` scroll range issue because recently GPUI changed the
`ScrollHandle` API, now we only get the `max_offset`.

So #1086 have fixed this to implementation a `content_size` method to
calculate `max_offset` and `bounds` of the `ScrollHandle`.

But I found that the `Interactivity` prepaint (This is used in
VirtualList) was not to update the `bounds` of the `ScrollHandle`.

Wait https://github.com/zed-industries/zed/pull/35013 to merge.

| Before | After |
| -- | --- |
| <img width="620" alt="image"
src="https://github.com/user-attachments/assets/6ffb8f30-93b4-42ec-a837-90f80ecb2bf5"
/> | <img width="620" alt="image"
src="https://github.com/user-attachments/assets/21466332-030c-495f-8c84-e3a2c6eeb403"
/> |
- Split `Scrollbale` and `VirtualList` story.

## Break Changes

- The `content_size` argument has been removed from `virtual_list`
callback.
2025-07-24 08:30:42 +00:00
..
macros chore: Fix spelling of the word masked (#990) 2025-06-19 12:34:19 +08:00
story virtual_list: Fix scrollable size calculate in VirtualList. (#1087) 2025-07-24 08:30:42 +00:00
ui virtual_list: Fix scrollable size calculate in VirtualList. (#1087) 2025-07-24 08:30:42 +00:00
webview chore: Update GPUI and fix FocusableWrapper removed error. (#1026) 2025-07-02 11:06:04 +08:00
wef wef: Fixed some issues (#975) 2025-06-18 10:46:55 +08:00