You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by fs...@apache.org on 2021/09/02 15:27:56 UTC

[jmeter] branch master updated: SplitPanel shows a scrollbar instead of shrinking the right panel in the main view

This is an automated email from the ASF dual-hosted git repository.

fschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git


The following commit(s) were added to refs/heads/master by this push:
     new a7bdcb2  SplitPanel shows a scrollbar instead of shrinking the right panel in the main view
a7bdcb2 is described below

commit a7bdcb24a379ee804c200bfa3a119891c2875614
Author: Felix Schumacher <fe...@internetallee.de>
AuthorDate: Thu Sep 2 17:26:39 2021 +0200

    SplitPanel shows a scrollbar instead of shrinking the right panel in the main view
    
    This hopefully restores the way it was in JMeter 5.3 and before.
    
    Bugzilla Id: 65545
---
 .../src/main/java/org/apache/jmeter/gui/util/VerticalPanel.java     | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/core/src/main/java/org/apache/jmeter/gui/util/VerticalPanel.java b/src/core/src/main/java/org/apache/jmeter/gui/util/VerticalPanel.java
index 4d72f72..ef940ec 100644
--- a/src/core/src/main/java/org/apache/jmeter/gui/util/VerticalPanel.java
+++ b/src/core/src/main/java/org/apache/jmeter/gui/util/VerticalPanel.java
@@ -25,6 +25,8 @@ import javax.swing.Box;
 import javax.swing.JComponent;
 import javax.swing.JPanel;
 
+import net.miginfocom.swing.MigLayout;
+
 public class VerticalPanel extends JPanel {
     private static final long serialVersionUID = 240L;
 
@@ -45,8 +47,8 @@ public class VerticalPanel extends JPanel {
     }
 
     public VerticalPanel(int vgap, float horizontalAlign) {
-        super(new BorderLayout());
-        add(subPanel, BorderLayout.NORTH);
+        super(new MigLayout("fillx, wrap 1, insets 0", "[95%!,fill,grow]"));
+        add(subPanel, "north");
         this.vgap = vgap;
         this.horizontalAlign = horizontalAlign;
     }