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
..
2024-03-28 15:41:22 -04:00
2024-04-18 15:53:48 -04:00
2024-03-05 12:01:17 -05:00
2024-04-23 15:14:22 +02:00
2024-03-26 13:28:06 +01:00
2024-04-10 17:21:23 -04:00
2024-04-12 12:29:00 -07:00
2024-04-11 15:36:35 -06:00
2024-04-12 11:40:59 -06:00
2024-04-22 20:26:49 +02:00
2024-04-16 19:57:38 -06:00
2024-03-05 12:01:17 -05:00
2024-04-23 05:41:31 -07:00
2024-04-18 14:26:32 +02:00
2024-03-29 17:09:49 -07:00
2024-03-15 16:58:46 -04:00
2024-03-15 12:37:25 -04:00
2024-03-26 13:28:06 +01:00
2024-04-12 18:40:35 +02:00
2024-04-10 17:21:23 -04:00
2024-03-22 17:29:06 -07:00
2024-04-15 14:44:14 -07:00
2024-04-23 15:14:22 +02:00
2024-04-22 18:38:34 -04:00
2024-04-09 10:38:29 -04:00
2024-03-28 18:32:11 +01:00
2024-04-23 15:14:22 +02:00
2024-04-11 15:36:35 -06:00
2024-04-10 17:21:23 -04:00
2024-04-11 23:09:12 +02:00
2024-04-08 11:41:54 +02:00
2024-04-19 11:57:17 +02:00
2024-03-08 22:18:44 -08:00
2024-03-05 12:01:17 -05:00
2024-04-19 18:54:20 +02:00
2024-04-10 12:08:07 +02:00
2024-03-20 15:52:02 +01:00
2024-04-23 15:14:22 +02:00
2024-04-11 15:38:47 +02:00
2024-04-11 15:36:35 -06:00
2024-04-11 23:09:12 +02:00
2024-03-11 10:45:57 +01:00
2024-04-08 19:17:12 -04:00
2024-04-19 10:51:50 +03:00
2024-03-05 12:01:17 -05:00
2024-04-23 15:14:22 +02:00
2024-04-22 16:43:48 -04:00
2024-03-20 17:33:26 -04:00
2024-03-18 20:33:20 -06:00
2024-04-16 14:27:12 +02:00
2024-04-11 23:09:12 +02:00
2024-04-02 13:12:38 -06:00
2024-03-26 16:10:09 -07:00
2024-04-19 14:27:56 -07:00
2024-03-20 12:47:04 -07:00
2024-04-02 20:40:00 -06:00
2024-04-12 11:40:59 -06:00
2024-03-14 12:39:45 -04:00
2024-04-03 17:28:51 +02:00
2024-03-21 08:23:15 +01:00
2024-04-22 12:36:26 +03:00
2024-04-22 13:24:25 -07:00
2024-03-05 12:01:17 -05:00
2024-04-17 13:20:47 +02:00
2024-04-11 03:48:06 -04:00
2024-03-05 12:01:17 -05:00
2024-04-22 18:01:06 +02:00
2024-04-12 14:26:41 +02:00
2024-04-12 18:40:35 +02:00
2024-04-18 12:36:22 +02:00
2024-04-22 13:24:25 -07:00
2024-04-19 18:59:12 -07:00
2024-03-29 12:11:57 -04:00
2024-04-22 18:38:34 -04:00
2024-03-05 12:01:17 -05:00
2024-04-11 03:48:06 -04:00
2024-03-05 12:01:17 -05:00
2024-03-14 17:05:07 -04:00
2024-04-20 19:41:45 -07:00
2024-04-19 14:27:56 -07:00
2024-04-11 23:09:12 +02:00
2024-04-19 16:24:35 +03:00
2024-04-22 12:36:26 +03:00
2024-03-29 12:11:57 -04:00
2024-04-19 16:24:35 +03:00
2024-04-23 15:14:22 +02:00
2024-04-10 08:32:51 -06:00
2024-04-08 19:17:12 -04:00
2024-04-01 12:07:26 -04:00
2024-03-20 11:13:58 -04:00
2024-04-15 14:21:52 +02:00
2024-04-23 15:14:22 +02:00
2024-04-11 10:03:36 -04:00
2024-04-22 12:42:18 -07:00
2024-04-19 11:57:17 +02:00
2024-04-22 13:24:25 -07:00
2024-04-11 23:09:12 +02:00
2024-04-23 15:14:22 +02:00
2024-04-19 11:57:17 +02:00
2024-04-22 12:42:18 -07:00
2024-03-05 12:01:17 -05:00