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

Diff of /classpath/java/awt/GridLayout.java

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

revision 1.6 by tromey, Fri Jan 25 17:25:07 2002 UTC revision 1.7 by tromey, Tue Jan 29 16:30:26 2002 UTC
# Line 172  public class GridLayout implements Layou Line 172  public class GridLayout implements Layou
172    
173      // Compute width and height of each cell in the grid.      // Compute width and height of each cell in the grid.
174      int tw = d.width - ins.left - ins.right;      int tw = d.width - ins.left - ins.right;
175      tw = (tw - (real_rows - 1) * hgap) / real_rows;      tw = (tw - (real_cols - 1) * hgap) / real_cols;
176      int th = d.height - ins.top - ins.bottom;      int th = d.height - ins.top - ins.bottom;
177      th = (th - (real_cols - 1) * vgap) / real_cols;      th = (th - (real_rows - 1) * vgap) / real_rows;
178    
179      // If the cells are too small, still try to do something.      // If the cells are too small, still try to do something.
180      if (tw < 0)      if (tw < 0)

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

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