On Tue, 21 Nov 2023 03:33:21 GMT, Prasanta Sadhukhan <[email protected]> 
wrote:

>> javadoc contract for JComponent.setMinimumSize(Dimension) states:
>> 
>> "Sets the minimum size of this component to a constant value. Subsequent 
>> calls to getMinimumSize will always return this value..."
>> 
>> However, JScrollBar overrides getMinimumSize() and breaks this contract - it 
>> always returns a minimum size derived from the preferred size even if you 
>> have previously called setMinimumSize()
>> 
>> Fix is made to check if mnimumSize is set and if so, honour it..
>
> Prasanta Sadhukhan has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   Override set*Methods and update spec

OK..Updated PR to revive the 1st iteration of the fix to honour max/min size if 
set by user along with spec clarifications..
Hope this suffice...

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

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

Reply via email to