ZIm/crates/ui/src
Antonio Scandurra bcbf2f2fd3
Introduce autoscroll support for elements (#10889)
This pull request introduces the new
`ElementContext::request_autoscroll(bounds)` and
`ElementContext::take_autoscroll()` methods in GPUI. These new APIs
enable container elements such as `List` to change their scroll position
if one of their children requested an autoscroll. We plan to use this in
the revamped assistant.

As a drive-by, we also:

- Renamed `Element::before_layout` to `Element::request_layout`
- Renamed `Element::after_layout` to `Element::prepaint`
- Introduced a new `List::splice_focusable` method to splice focusable
elements into the list, which enables rendering offscreen elements that
are focused.

Release Notes:

- N/A

---------

Co-authored-by: Nathan <nathan@zed.dev>
2024-04-23 15:14:22 +02:00
..
components Introduce autoscroll support for elements (#10889) 2024-04-23 15:14:22 +02:00
styles Inline git blame (#10398) 2024-04-15 14:21:52 +02:00
utils Avoid failing format test with current date (#10068) 2024-04-02 10:37:14 +02:00
clickable.rs Document ui crate traits 2024-01-09 14:15:25 -05:00
components.rs WIP: remoting (#10085) 2024-04-11 15:36:35 -06:00
disableable.rs Fix possessive "its" in docs and comments (#3998) 2024-01-10 10:09:48 -05:00
fixed.rs Document ui crate traits 2024-01-09 14:15:25 -05:00
prelude.rs ui: Refine TitleBar component (#9415) 2024-03-15 15:48:07 -04:00
selectable.rs Clean up references in doc comments in ui and theme crates (#3985) 2024-01-09 15:22:36 -05:00
styled_ext.rs Fix flickering (#9012) 2024-03-11 10:45:57 +01:00
styles.rs ui: Refine TitleBar component (#9415) 2024-03-15 15:48:07 -04:00
ui.rs Document UI modules 2024-01-09 12:57:12 -05:00
utils.rs Document UI modules 2024-01-09 12:57:12 -05:00
visible_on_hover.rs Remove 2 suffix for ui, storybook, text 2024-01-03 12:33:51 -08:00