You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by pm...@apache.org on 2017/05/29 19:59:37 UTC

svn commit: r1796687 - /jmeter/trunk/src/core/org/apache/jmeter/control/gui/IfControllerPanel.java

Author: pmouawad
Date: Mon May 29 19:59:37 2017
New Revision: 1796687

URL: http://svn.apache.org/viewvc?rev=1796687&view=rev
Log:
Bug 61131 - IfController and WhileController : Improve UX
Simplify code to avoid hack for headless mode
Bugzilla Id: 61131

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/control/gui/IfControllerPanel.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/control/gui/IfControllerPanel.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/control/gui/IfControllerPanel.java?rev=1796687&r1=1796686&r2=1796687&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/control/gui/IfControllerPanel.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/control/gui/IfControllerPanel.java Mon May 29 19:59:37 2017
@@ -180,8 +180,7 @@ public class IfControllerPanel extends A
         conditionLabel.setLabelFor(theCondition);
         conditionPanel.add(JTextScrollPane.getInstance(theCondition), BorderLayout.CENTER);
        
-        conditionPanel.add(Box.createHorizontalStrut(conditionLabel.getPreferredSize().width
-                + theCondition.getPreferredSize().width), BorderLayout.NORTH);
+        conditionPanel.add(Box.createHorizontalGlue(), BorderLayout.NORTH);
 
         JPanel optionPanel = new JPanel();