RFR: 6510914: JScrollBar.getMinimumSize() breaks the contract of JComponent.setMinimumSize() [v6]

Prasanta Sadhukhan psadhukhan at openjdk.org
Thu Nov 16 06:52:35 UTC 2023


On Wed, 15 Nov 2023 23:34:04 GMT, Phil Race <prr at openjdk.org> wrote:

> Can someone attach somewhere a clear "with methods" vs "without methods" (ie before and after, side-by side screenshot) of what is considered to be the most problematic consequence of removing them ?

One example of consequence of removing the methods is as Alexey pointed out `the scrollbar becomes flexible along its secondary axis too`
 so `second scrollbar starts growing only after the the third one reaches its minimum size`
That is running Alexey's testcase, if we start to shrink the Frame horizontally, then the 3rd (from left) vertical scrollbar starts to shrink but after a certain point, the 2nd vertical scrollbar starts growing as can be seen on **left side (without methods)** whereas it should remain fixed, as can be seen on **right side (with methods)**
![scroll-resize-shrink](https://github.com/openjdk/jdk/assets/43534309/290e5603-7d8e-4d14-b2d6-6b7721da86bd)

-------------

PR Comment: https://git.openjdk.org/jdk/pull/15325#issuecomment-1813879504


More information about the client-libs-dev mailing list