Using unsafe area toolbars in file selector
This commit is contained in:
parent
667fefa3b4
commit
33e4b57d79
5 changed files with 159 additions and 133 deletions
|
|
@ -11,7 +11,7 @@ void PositionAdjustingPopupMenu::layout(const Clay_ElementId& id, Vector2f popup
|
|||
auto& bb = layoutElement->get_bb().value();
|
||||
if((popupPos.y() + bb.height()) > gui.io.windowSize.y())
|
||||
popupPos.y() -= bb.height();
|
||||
if((popupPos.x() + bb.width()) > gui.io.windowSize.y())
|
||||
if((popupPos.x() + bb.width()) > gui.io.windowSize.x())
|
||||
popupPos.x() -= bb.width();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue