From 73467746161e97593177dd1a2f61ee7a5f3ef0c1 Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Sat, 23 May 2020 18:44:54 +0200 Subject: [PATCH] Fix alignment of popup messages. They were supposed to be centered but this broke. --- Content.Client/ClientNotifyManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Client/ClientNotifyManager.cs b/Content.Client/ClientNotifyManager.cs index 867bee8144..7ffa7aa2f8 100644 --- a/Content.Client/ClientNotifyManager.cs +++ b/Content.Client/ClientNotifyManager.cs @@ -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); }