ZIm/crates/extensions_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 Disable extension entries when the corresponding dev extension is installed (#10580) 2024-04-15 16:27:54 -04:00
components.rs Add a command for building and installing a locally-developed Zed extension (#8781) 2024-03-06 15:35:22 -08:00
extension_suggest.rs Sort the list of suggested extensions (#10854) 2024-04-22 11:41:16 -04:00
extension_version_selector.rs Extract SemanticVersion into its own crate (#9956) 2024-03-29 12:11:57 -04:00
extensions_ui.rs Introduce autoscroll support for elements (#10889) 2024-04-23 15:14:22 +02:00