From 49e2c2e05ad5c1958b4d24930ec370163b23411f Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Sun, 9 Oct 2022 20:16:24 +0200 Subject: [PATCH] Fix rules window (#11796) --- Content.Client/Info/RulesManager.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Client/Info/RulesManager.cs b/Content.Client/Info/RulesManager.cs index 0b1c2dd077..eb247dfa93 100644 --- a/Content.Client/Info/RulesManager.cs +++ b/Content.Client/Info/RulesManager.cs @@ -70,10 +70,11 @@ public sealed class RulesManager : SharedRulesManager { Timer = time }; + _activePopup.OnQuitPressed += OnQuitPressed; _activePopup.OnAcceptPressed += OnAcceptPressed; _userInterfaceManager.StateRoot.AddChild(_activePopup); - LayoutContainer.SetAnchorAndMarginPreset(_activePopup, LayoutContainer.LayoutPreset.Wide); + LayoutContainer.SetAnchorPreset(_activePopup, LayoutContainer.LayoutPreset.Wide); } private void OnQuitPressed()