Fix OpenCentered by setting size before position (#1604)
This commit is contained in:
parent
01b10cb687
commit
cf45beb7dc
5 changed files with 5 additions and 5 deletions
|
|
@ -69,7 +69,7 @@ namespace Content.Client.GameObjects.Components.Cargo
|
|||
_orderMenu.Requester.Text = null;
|
||||
_orderMenu.Reason.Text = null;
|
||||
_orderMenu.Amount.Value = 1;
|
||||
_orderMenu.OpenCenteredMinSize();
|
||||
_orderMenu.OpenCentered();
|
||||
};
|
||||
_menu.OnOrderApproved += ApproveOrder;
|
||||
_menu.OnOrderCanceled += RemoveOrder;
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ namespace Content.Client.GameObjects.Components.Chemistry
|
|||
Title = _localizationManager.GetString("Reagent dispenser"),
|
||||
};
|
||||
|
||||
_window.OpenCenteredMinSize();
|
||||
_window.OpenCentered();
|
||||
_window.OnClose += Close;
|
||||
|
||||
//Setup static button actions.
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ namespace Content.Client.GameObjects.Components.Disposal
|
|||
|
||||
_window = new DisposalUnitWindow();
|
||||
|
||||
_window.OpenCenteredMinSize();
|
||||
_window.OpenCentered();
|
||||
_window.OnClose += Close;
|
||||
|
||||
_window.Eject.OnPressed += _ => ButtonPressed(UiButton.Eject);
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue