Fix context menu positioning for child menus when flipping the direction over Y axis
This commit is contained in:
@@ -136,6 +136,10 @@ namespace FlaxEditor.GUI.ContextMenu
|
||||
// Direction: up
|
||||
isUp = true;
|
||||
locationSS.Y -= dpiSize.Y;
|
||||
|
||||
// Offset to fix sub-menu location
|
||||
if (parent is ContextMenu menu && menu._childCM != null)
|
||||
locationSS.Y += 30.0f * dpiScale;
|
||||
}
|
||||
if (monitorBounds.Right < rightBottomLocationSS.X)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user