IDEA-140557 Step buttons should disappear last appcode/142.1944
authorEgor.Ushakov <egor.ushakov@jetbrains.com>
Fri, 22 May 2015 09:31:17 +0000 (12:31 +0300)
committerEgor.Ushakov <egor.ushakov@jetbrains.com>
Fri, 22 May 2015 09:31:17 +0000 (12:31 +0300)
platform/lang-impl/src/com/intellij/execution/ui/layout/impl/RunnerContentUi.java

index 109ff6fa960f315b8b0f595b952731490e5c2055..aefd61a377e5a44babee6603d57b44f0c9c181f9 100644 (file)
@@ -1692,7 +1692,9 @@ public class RunnerContentUi implements ContentUI, Disposable, CellTransform.Fac
         Dimension leftMinSize = myLeft.getMinimumSize();
         Dimension rightMinSize = myRight.getMinimumSize();
 
-        int delta = (prefSize.width - size.width) / 2;
+        // see IDEA-140557, always shrink left component last
+        int delta = 0;
+        //int delta = (prefSize.width - size.width) / 2;
 
         myLeft.setBounds(0, 0, myLeft.getPreferredSize().width - delta, parent.getHeight());
         int rightX = (int)myLeft.getBounds().getMaxX();