Files
oak-gpui/crates
Massimo Mund e783142528 Fix vertical_scroll_margin not being capped for large vertical_scroll_margin values (#15473)
When switching to function definitions in a new buffer the
`AutoscrollStrategy::Focused` being emitted to scroll to the found
location.
If a large value `vertical_scroll_margin` (e.g.: 99) is set, this leads
to an incorrectly calculated position and the new buffer opens in the
wrong place.

In `autoscroll_vertically()` there is a margin calculated to cap the
value of `vertical_scroll_margin` for certain AutoscrollStrategies. This
margin is being used in `AutoscrollStrategy::Fit` and
`AutoscrollStrategy::Newest` but was probably forgotten for
`AutoscrollStrategy::Focused`.

- Might fix [#15101](https://github.com/zed-industries/zed/issues/15101)

Release Notes:

- N/A
2024-08-09 09:35:57 +02:00
..
2024-05-29 18:06:45 -07:00
2024-07-23 15:01:05 -07:00
2024-08-08 17:21:38 -07:00
2024-07-26 16:42:21 -07:00
2024-07-23 15:01:05 -07:00
2024-07-23 15:01:05 -07:00
2024-07-15 17:04:15 -06:00
2024-07-25 09:00:53 -06:00
2024-06-21 16:32:32 -07:00
2024-07-26 03:31:41 -04:00