From 79900db158a3dfa3ad7acb97b6f883611acb2bc4 Mon Sep 17 00:00:00 2001 From: David Capello Date: Fri, 24 Apr 2020 12:04:36 -0300 Subject: [PATCH] Fix issue showing the dynamics popup when the UI scaling changed --- src/app/ui/context_bar.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/app/ui/context_bar.cpp b/src/app/ui/context_bar.cpp index 1e81f4cdb..c60b8081c 100644 --- a/src/app/ui/context_bar.cpp +++ b/src/app/ui/context_bar.cpp @@ -983,12 +983,11 @@ public: } void showPopup() { - if (!m_popup) { + if (!m_popup) m_popup.reset(new DynamicsPopup(this)); - m_popup->remapWindow(); - } const gfx::Rect bounds = this->bounds(); + m_popup->remapWindow(); m_popup->positionWindow(bounds.x, bounds.y+bounds.h); m_popup->setHotRegion(gfx::Region(m_popup->bounds())); m_popup->openWindow();