Fix OpenCentered by setting size before position (#1604)
This commit is contained in:
@@ -24,7 +24,7 @@ namespace Content.Client.GameObjects.Components.Power
|
||||
|
||||
_window = new ApcWindow();
|
||||
_window.OnClose += Close;
|
||||
_window.OpenCenteredMinSize();
|
||||
_window.OpenCentered();
|
||||
|
||||
_breakerButton = _window.BreakerButton;
|
||||
_breakerButton.OnPressed += _ => SendMessage(new ApcToggleMainBreakerMessage());
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace Content.Client.GameObjects.Components.Power
|
||||
SendMessage(msg);
|
||||
}
|
||||
};
|
||||
_window.OpenCenteredMinSize();
|
||||
_window.OpenCentered();
|
||||
}
|
||||
|
||||
public SolarControlConsoleBoundUserInterface(ClientUserInterfaceComponent owner, object uiKey) : base(owner, uiKey)
|
||||
|
||||
Reference in New Issue
Block a user