classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] FYI: ViewportLayout patch fixes PR 17362


From: Anthony Balkissoon
Subject: [cp-patches] FYI: ViewportLayout patch fixes PR 17362
Date: Wed, 26 Oct 2005 15:45:17 -0400

This patch to ViewportLayout reverts part of a patch committed on
October 12 that I mentioned on IRC was incorrect.  We should be checking
to see if the viewport is smaller than the minimum size of the view, not
the preferred size.  Being smaller than the preferred size is allowed.

This fixes PR 17362 and also makes many test apps look a lot better as
the scrollbars show up when they're supposed to, rather than after a
resize.  

2005-10-26  Anthony Balkissoon  <address@hidden>

        * javax/swing/ViewportLayout.java:
        (layoutContainer): Fixed incorrect boundary checks, should have been 
        checking for viewport being  smaller than minimum size, not smaller 
        than preferred size.

--Tony

Attachment: ViewportLayoutFix.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]