FlowLayout.java (layoutContainer): Correctly compute loop termination condition.
* java/awt/FlowLayout.java (layoutContainer): Correctly compute loop termination condition. * java/awt/GridLayout.java (getSize): Use `real_cols' to compute width. From-SVN: r49216
This commit is contained in:
parent
fd29f6eae8
commit
2fb4e07f24
3 changed files with 13 additions and 6 deletions
|
@ -320,8 +320,8 @@ public class GridLayout implements LayoutManager, Serializable
|
|||
Insets ins = parent.getInsets ();
|
||||
// We subtract out an extra gap here because the gaps are only
|
||||
// between cells.
|
||||
w = ins.left + ins.right + real_rows * (w + hgap) - hgap;
|
||||
h = ins.top + ins.bottom + real_cols * (h + vgap) - vgap;
|
||||
w = ins.left + ins.right + real_cols * (w + hgap) - hgap;
|
||||
h = ins.top + ins.bottom + real_rows * (h + vgap) - vgap;
|
||||
return new Dimension (w, h);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue