Stop using some obsolete stuff (#4657)

This commit is contained in:
Visne
2021-09-20 08:40:22 +02:00
committed by GitHub
parent 3895266b1f
commit fcc1217e5d
6 changed files with 13 additions and 13 deletions

View File

@@ -77,7 +77,7 @@ namespace Content.Client.ContextMenu.UI
AddToUI(orderedStates);
_userInterfaceManager.ModalRoot.AddChild(rootContextMenu);
var size = rootContextMenu.List.CombinedMinimumSize;
var size = rootContextMenu.List.DesiredSize;
var box = UIBox2.FromDimensions(_userInterfaceManager.MousePositionScaled.Position, size);
rootContextMenu.Open(box);
}
@@ -92,7 +92,7 @@ namespace Content.Client.ContextMenu.UI
AddToUI(orderedStates, stack);
_userInterfaceManager.ModalRoot.AddChild(childContextMenu);
var size = childContextMenu.List.CombinedMinimumSize;
var size = childContextMenu.List.DesiredSize;
childContextMenu.Open(UIBox2.FromDimensions(position + (stack.Width, 0), size));
}