Hello Semyon
The fix looks good.
Thanks
alexp
On 9/8/2015 23:57, Semyon Sadetsky wrote:
Hello,
Please review fix for JDK9:
bug: https://bugs.openjdk.java.net/browse/JDK-8134828
webrev: http://cr.openjdk.java.net/~ssadetsky/8134828/webrev.00/
This is a regression from the 8041642 which introduced a protection
from shrinking of the painter image less then it stretching inset when
9-square algorithm is applied to it. But the scroll bar has minimum
thumb size 29px while its stretching inset is 30px and it allows
painter image to be shrunk from 30px to 29px. So the painter image
shrinking is determined by the component type.
As a solution the 8041642 fix was reworked to disable shrinking for
the progress bar component only. To regulate this the new properties
were introduced in the Nimbus default style: minBarSize and glowWidth.
The last one fix yet another issue with the progress bar in Nimbus:
the bar foreground alignment ignored the transparent glow in the
painter image for the inverted progress bar direction.
--Semyon