mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-01 01:20:25 +00:00
Fix IntEntry's popup if it's beyond the screen border
This commit is contained in:
parent
9076ee13ea
commit
1bf84bac41
@ -100,6 +100,9 @@ void IntEntry::openPopup()
|
|||||||
rc.y += rc.h;
|
rc.y += rc.h;
|
||||||
rc.h += 2*jguiscale();
|
rc.h += 2*jguiscale();
|
||||||
rc.w = 128*jguiscale();
|
rc.w = 128*jguiscale();
|
||||||
|
if (rc.x+rc.w > JI_SCREEN_W)
|
||||||
|
rc.x = rc.x - rc.w + getBounds().w;
|
||||||
|
|
||||||
m_popupWindow = new PopupWindow(NULL, false);
|
m_popupWindow = new PopupWindow(NULL, false);
|
||||||
m_popupWindow->setAutoRemap(false);
|
m_popupWindow->setAutoRemap(false);
|
||||||
m_popupWindow->setBounds(rc);
|
m_popupWindow->setBounds(rc);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user