Flight Engineer centred on first start and default GUI size 0.
[VesselSimulator.git] / KerbalEngineer / Flight / DisplayStack.cs
blob:a/KerbalEngineer/Flight/DisplayStack.cs -> blob:b/KerbalEngineer/Flight/DisplayStack.cs
--- a/KerbalEngineer/Flight/DisplayStack.cs
+++ b/KerbalEngineer/Flight/DisplayStack.cs
@@ -226,7 +226,7 @@
 

                 if (!this.Hidden && (SectionLibrary.Instance.NumberOfStackSections > 0 || this.ShowControlBar))

                 {

-                    var shouldCentre = this.windowPosition.min == Vector2.zero && this.windowPosition.max == Vector2.zero;

+                    var shouldCentre = this.windowPosition.min == Vector2.zero;

                     this.windowPosition = GUILayout.Window(this.windowId, this.windowPosition, this.Window, string.Empty, this.windowStyle).ClampToScreen();

                     if (shouldCentre)

                     {