From 2f2047ab220768088d4522855638f51721a91494 Mon Sep 17 00:00:00 2001 From: CharlesChen0823 Date: Wed, 10 Jul 2024 15:12:09 +0800 Subject: [PATCH] outline_panel: Fix outline panel should autoscroll when selection has changed (#14038) Fixed selection changed, outline panel not autoscroll. Release Notes: - N/A --- crates/outline_panel/src/outline_panel.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/outline_panel/src/outline_panel.rs b/crates/outline_panel/src/outline_panel.rs index acda4ee668723a426a252d8fc9dbc920728ab838..6d87cbd706d876e58bc86a0a93db17ea5df1b02f 100644 --- a/crates/outline_panel/src/outline_panel.rs +++ b/crates/outline_panel/src/outline_panel.rs @@ -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(