gpui-component/crates
Jason Lee d7e04ecdd0
scrollbar: Improve Scrollbar to get correct scroll size. (#985)
Continue #984

- Fixes there may Scrollbar size not match the content size. Close #979
- Improved Table scrollbar to only render at scrollable area when there
have fixed columns.

<img width="850" alt="image"
src="https://github.com/user-attachments/assets/84f54515-e61a-484f-b2b4-ea5abb98ddb8"
/>


## Break Changes

- The `Scrollbar` has been removed `entity_id` and `scroll_size`
argument from new method, it will get that value from `scroll_handle`.
- There still have a `scroll_size` optional method, if you want to give
your own.
  - Also changed the `scroll_state`, `scroll_handle` to receive a ref.

```diff
- Scrollbar::vertical(entity_id, scroll_state, scroll_handle, scroll_size);
+ Scrollbar::vertical(&scroll_state, &scroll_handle);
+ Scrollbar::vertical(&scroll_state, &scroll_handle).scroll_size(scroll_size);
```
2025-06-18 19:09:34 +08:00
..
macros code-editor: Update CodeEditor to support external language. (#928) 2025-06-09 14:27:33 +08:00
story scrollbar: Improve Scrollbar to get correct scroll size. (#985) 2025-06-18 19:09:34 +08:00
ui scrollbar: Improve Scrollbar to get correct scroll size. (#985) 2025-06-18 19:09:34 +08:00
webview wef: Fixed some issues (#975) 2025-06-18 10:46:55 +08:00
wef wef: Fixed some issues (#975) 2025-06-18 10:46:55 +08:00