gpui-component/crates/ui/src/dock
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
..
dock.rs chore: Upgrade GPUI 2025/05/26 with inspector changes. (#895) 2025-05-26 13:40:27 +08:00
invalid_panel.rs chore: Upgrade GPUI 3 (#587) 2025-01-27 03:58:48 +08:00
mod.rs dock: Revert panel radio size to back to use Pixels type for panel size. (#842) 2025-05-09 16:47:24 +08:00
panel.rs dock: Add tab_name for collapsed tab panels (#751) 2025-03-28 11:44:34 +08:00
stack_panel.rs dock: Ensure add panel to StackPanel is type of TabPanel or StackPanel. (#862) 2025-05-17 22:42:03 +08:00
state.rs dock: Revert panel radio size to back to use Pixels type for panel size. (#842) 2025-05-09 16:47:24 +08:00
tab_panel.rs dock: Bind actions only when the tab panel is not collapsed (#964) 2025-06-17 13:38:24 +08:00
tiles.rs scrollbar: Improve Scrollbar to get correct scroll size. (#985) 2025-06-18 19:09:34 +08:00