apache / jmeter

Apache JMeter open-source load testing tool for analyzing and measuring the performance of a variety of services
https://jmeter.apache.org/
Apache License 2.0
8.37k stars 2.1k forks source link

[PATCH] Resizing issues #1066

Closed asfimport closed 21 years ago

asfimport commented 21 years ago

Jeremy Arnold (Bug 18503): JMeter's resizing behavior isn't ideal. In particular, if your JMeter window is large, and then you switch to a new component, then make the window smaller, the component will not resize. Instead, scrollbars will appear and the component will remain the same size.

The cause of this behavior is in the MainFrame class. When a new component is selected, it will set the component's preferred size to the current available space. Since the component is inside a scrollpane, this means that the component will never resize below this currently available space, resulting in the behavior described above.

The fix for this in MainFrame is quite simple. But unfortunately, many of the JMeter components rely on this behavior to get a reasonable initial size. So several other components need to be updated when this change is made.

The patch I'm attaching includes the MainFrame fix as well as adjustments to several other components which obviously needed it. I took a quick look at each of the components and I think I caught all of the key ones, but I can't promise that all of the components will start with a reasonable size and resize properly after this fix. If you find a component that is not correct, please let me know and I'll work on it.

Version: Nightly Severity: normal OS: All

asfimport commented 21 years ago

Jeremy Arnold (migrated from Bugzilla): Created attachment resize.txt: Patch to fix MainFrame and various components

asfimport commented 21 years ago

Jeremy Arnold (migrated from Bugzilla): Added [PATCH] to Summary