outline_panel: Fix outline panel should autoscroll when selection has changed (#14038)

Fixed selection changed, outline panel not autoscroll.

Release Notes:

- N/A
This commit is contained in:
CharlesChen0823 2024-07-10 15:12:09 +08:00 committed by GitHub
parent d01d76482d
commit 2f2047ab22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1207,6 +1207,7 @@ impl OutlinePanel {
self.selected_entry = Some(entry_with_selection);
self.update_cached_entries(None, cx);
self.autoscroll(cx);
}
fn render_excerpt(