mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-29 19:20:09 +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.h += 2*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->setAutoRemap(false);
|
||||
m_popupWindow->setBounds(rc);
|
||||
|
Loading…
x
Reference in New Issue
Block a user