/[classpath]/classpath/java/awt/GridBagLayout.java
ViewVC logotype

Diff of /classpath/java/awt/GridBagLayout.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.21 by langel, Fri Aug 5 17:16:52 2005 UTC revision 1.22 by langel, Tue Oct 18 20:06:15 2005 UTC
# Line 705  public class GridBagLayout Line 705  public class GridBagLayout
705                        if (lastInCol.containsKey(new Integer(x)))                        if (lastInCol.containsKey(new Integer(x)))
706                          {                          {
707                            Component lastComponent = (Component) lastInRow.get(new Integer(x));                            Component lastComponent = (Component) lastInRow.get(new Integer(x));
708                            GridBagConstraints lastConstraints = lookupInternalConstraints(lastComponent);                            if (lastComponent != null)
   
                           if (lastConstraints.gridheight == GridBagConstraints.RELATIVE)  
709                              {                              {
710                                constraints.gridy = max_y - 1;                                GridBagConstraints lastConstraints = lookupInternalConstraints(lastComponent);
711                                break;      
712                              }                                if (lastConstraints.gridheight == GridBagConstraints.RELATIVE)
713                            else                                  {
714                              {                                    constraints.gridy = max_y - 1;
715                                constraints.gridy = Math.max (constraints.gridy,                                    break;
716                                                              lastConstraints.gridy + Math.max (1, lastConstraints.gridheight));                                  }
717                                  else
718                                    {
719                                      constraints.gridy = Math.max (constraints.gridy,
720                                                                    lastConstraints.gridy + Math.max (1, lastConstraints.gridheight));
721                                    }
722                              }                              }
723                          }                          }
724                      }                      }

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26