mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-06 06:58:15 +00:00
Fix issue showing the dynamics popup when the UI scaling changed
This commit is contained in:
parent
c99a566635
commit
79900db158
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user