From 4226cd6f7f70aa5b1c282877c2a1ae8f784bfff1 Mon Sep 17 00:00:00 2001 From: Carlos Zamora Date: Tue, 10 Mar 2020 14:45:38 -0700 Subject: [PATCH] Revert "Update the dragbar when the titlebar content size changes (#4845)" This reverts commit 62e424f8d73342deda699808a4f22979be3d5d79. --- src/cascadia/WindowsTerminal/NonClientIslandWindow.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/cascadia/WindowsTerminal/NonClientIslandWindow.cpp b/src/cascadia/WindowsTerminal/NonClientIslandWindow.cpp index b11784481810..bf35c555aa6a 100644 --- a/src/cascadia/WindowsTerminal/NonClientIslandWindow.cpp +++ b/src/cascadia/WindowsTerminal/NonClientIslandWindow.cpp @@ -110,16 +110,6 @@ void NonClientIslandWindow::SetContent(winrt::Windows::UI::Xaml::UIElement conte void NonClientIslandWindow::SetTitlebarContent(winrt::Windows::UI::Xaml::UIElement content) { _titlebar.Content(content); - - // GH#4288 - add a SizeChanged handler to this content. It's possible that - // this element's size will change after the dragbar's. When that happens, - // the drag bar won't send another SizeChanged event, because the dragbar's - // _size_ didn't change, only it's position. - const auto fwe = content.try_as(); - if (fwe) - { - fwe.SizeChanged({ this, &NonClientIslandWindow::_OnDragBarSizeChanged }); - } } // Method Description: