mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-08 12:40:50 +00:00
Make hot-region bigger for ToolStrip popup
This commit is contained in:
parent
cd464f6694
commit
c387d330e6
@ -464,7 +464,7 @@ void ToolBar::openPopupWindow(int group_index, ToolGroup* tool_group)
|
||||
}
|
||||
|
||||
// Set hotregion of popup window
|
||||
Region rgn(rc);
|
||||
Region rgn(gfx::Rect(rc).enlarge(16*jguiscale()));
|
||||
rgn.createUnion(rgn, Region(getBounds()));
|
||||
m_popupWindow->setHotRegion(rgn);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user