Fix alignment of popup messages.
They were supposed to be centered but this broke.
This commit is contained in:
@@ -63,9 +63,9 @@ namespace Content.Client
|
||||
Text = message,
|
||||
StyleClasses = { StyleNano.StyleClassPopupMessage },
|
||||
};
|
||||
_userInterfaceManager.PopupRoot.AddChild(label);
|
||||
var minimumSize = label.CombinedMinimumSize;
|
||||
LayoutContainer.SetPosition(label, label.InitialPos = coordinates.Position - minimumSize / 2);
|
||||
_userInterfaceManager.PopupRoot.AddChild(label);
|
||||
_aliveLabels.Add(label);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user