Fix issue showing the dynamics popup when the UI scaling changed

This commit is contained in:
David Capello 2020-04-24 12:04:36 -03:00
parent c99a566635
commit 79900db158

View File

@ -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();