Fix expandable windows with user data doesn't show correctly

Before this fix when we clicked on user data icon (to expand the window and show the user data), the expanded window were displayed incorrectly (some parts black, and other with an incorrent widget size).
This commit is contained in:
Gaspar Capello 2021-04-15 09:56:31 -03:00
parent de68fddbe7
commit 3093eda958

View File

@ -367,6 +367,7 @@ void Window::expandWindow(const gfx::Size& size)
gfx::Rect frame = nativeWindow->frame();
frame.setSize(size * scale);
nativeWindow->setFrame(frame);
setBounds(gfx::Rect(bounds().origin(), size));
layout();
invalidate();