gpui-component/crates/ui
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
..
locales input: Improve clear button position in Input. (#782) 2025-04-11 19:13:17 +08:00
src scrollbar: Improve Scrollbar to get correct scroll size. (#985) 2025-06-18 19:09:34 +08:00
tests/fixtures dock: Revert dock to use absolute size. (#840) 2025-05-08 16:29:55 +08:00
Cargo.toml highlighter: Fix injection language highlight. (#931) 2025-06-11 15:26:27 +08:00
default-colors.json
LICENSE-APACHE