pane: Fix scrolling to items when there are pinned tabs (#17444)

Closes #ISSUE

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz authored and GitHub committed 2024-09-05 20:51:16 +02:00
1 parent a5b4ac899e
commit 065caabbbe
1 file changed
+5 -1
+5 -1
View File
@@ -1013,7 +1013,11 @@ impl Pane {
self.focus_active_item(cx);
}
self.tab_bar_scroll_handle.scroll_to_item(index);
if !self.is_tab_pinned(index) {
self.tab_bar_scroll_handle
.scroll_to_item(index - self.pinned_tab_count);
}
cx.notify();
}
}