jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject [jmeter] branch master updated: Keep divider location when changing visualizer mode
Date Sun, 15 Mar 2020 11:01:29 GMT
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 7f32736  Keep divider location when changing visualizer mode
7f32736 is described below

commit 7f32736782e8e1ae9d96e23b4f5d09a93fbd5d83
Author: Felix Schumacher <felix.schumacher@internetallee.de>
AuthorDate: Tue Mar 10 21:27:10 2020 +0100

    Keep divider location when changing visualizer mode
    
    Bugzilla Id: 63822
---
 .../org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java    | 6 ++++--
 xdocs/changes.xml                                                   | 1 +
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/components/src/main/java/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java
b/src/components/src/main/java/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java
index 5e5e154..0c3b03b 100644
--- a/src/components/src/main/java/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java
+++ b/src/components/src/main/java/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java
@@ -514,12 +514,14 @@ implements ActionListener, TreeSelectionListener, Clearable, ItemListener
{
                 if (rightSide != null) {
                     // to restore last selected tab (better user-friendly)
                     selectedTab = rightSide.getSelectedIndex();
-                    // Remove old right side
+                    // Remove old right side and keep the position of the divider
+                    int dividerLocation = mainSplit.getDividerLocation();
                     mainSplit.remove(rightSide);
 
-                    // create and add a new right side
+                    // create and add a new right side at the old position
                     rightSide = new JTabbedPane();
                     mainSplit.add(rightSide);
+                    mainSplit.setDividerLocation(dividerLocation);
                     resultsRender.setRightSide(rightSide);
                     resultsRender.setLastSelectedTab(selectedTab);
                     log.debug("selectedTab={}", selectedTab);
diff --git a/xdocs/changes.xml b/xdocs/changes.xml
index 2ee393b..6025380 100644
--- a/xdocs/changes.xml
+++ b/xdocs/changes.xml
@@ -97,6 +97,7 @@ to view the last release notes of version 5.2.1.
 <h3>Listeners</h3>
 <ul>
     <li><bug>64150</bug>View Results Tree: Allow editing of response data
in testers</li>
+    <li><bug>63822</bug>View Results Tree: Keep position of split pane
while switching renderer mode</li>
 </ul>
 
 <h3>Timers, Assertions, Config, Pre- &amp; Post-Processors</h3>


Mime
View raw message