From 12b12d5b078bb1ff2e7b3a1fd190cad889ef4225 Mon Sep 17 00:00:00 2001 From: Don-Vito Date: Wed, 20 Jan 2021 19:37:47 +0200 Subject: [PATCH] Fix tab selection to bring the tab into view (#8832) ## PR Checklist * [x] Closes https://github.com/microsoft/terminal/issues/3638 * [x] CLA signed. * [ ] Tests added/passed * [ ] Documentation updated. * [ ] Schema updated. * [x] I've discussed this with core contributors already. ##Detailed Description of the Pull Request / Additional comments A workaround for https://github.com/microsoft/microsoft-ui-xaml/issues/3945. Thanks to @michael-hawker and @chingucoding for the suggested solution. --- src/cascadia/TerminalApp/TerminalPage.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cascadia/TerminalApp/TerminalPage.cpp b/src/cascadia/TerminalApp/TerminalPage.cpp index 209bb9095..e4567df27 100644 --- a/src/cascadia/TerminalApp/TerminalPage.cpp +++ b/src/cascadia/TerminalApp/TerminalPage.cpp @@ -2208,6 +2208,8 @@ namespace winrt::TerminalApp::implementation _UpdateMRUTab(index); } + tab.TabViewItem().StartBringIntoView(); + // Raise an event that our title changed _titleChangeHandlers(*this, tab.Title()); }