mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-16 05:42:32 +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() {
|
void showPopup() {
|
||||||
if (!m_popup) {
|
if (!m_popup)
|
||||||
m_popup.reset(new DynamicsPopup(this));
|
m_popup.reset(new DynamicsPopup(this));
|
||||||
m_popup->remapWindow();
|
|
||||||
}
|
|
||||||
|
|
||||||
const gfx::Rect bounds = this->bounds();
|
const gfx::Rect bounds = this->bounds();
|
||||||
|
m_popup->remapWindow();
|
||||||
m_popup->positionWindow(bounds.x, bounds.y+bounds.h);
|
m_popup->positionWindow(bounds.x, bounds.y+bounds.h);
|
||||||
m_popup->setHotRegion(gfx::Region(m_popup->bounds()));
|
m_popup->setHotRegion(gfx::Region(m_popup->bounds()));
|
||||||
m_popup->openWindow();
|
m_popup->openWindow();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user