If the last component in a column had its gridheight = REMAINDER, then
the row height would be set to 0 and that component would not be
visible. Fixed and committed. There is still a bug in GridBagLayout, the
location/size for these type of components is not set properly. I am
working on it.

2006-03-10  Lillian Angel  <[EMAIL PROTECTED]>

        * java/awt/GridBagLayout.java
        (distributeSizeAndWeight): Change else if to else. This
        allows for components to be added to a new row when
        their gridheight is REMAINDER.

Index: java/awt/GridBagLayout.java
===================================================================
RCS file: /sources/classpath/classpath/java/awt/GridBagLayout.java,v
retrieving revision 1.25
diff -u -r1.25 GridBagLayout.java
--- java/awt/GridBagLayout.java	8 Mar 2006 20:04:13 -0000	1.25
+++ java/awt/GridBagLayout.java	10 Mar 2006 19:52:25 -0000
@@ -916,7 +917,7 @@
           sizes[start] = Math.max(sizes[start], size);
           weights[start] = Math.max(weights[start], weight);
         }
-      else if (span > 1)
+      else
         {
           int numOccupied = span;
           int lastOccupied = -1;

Reply via email to