Changeset 278 for trunk/src/org/expeditee/gui/Frame.java
- Timestamp:
- 08/25/08 15:19:25 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/gui/Frame.java
r247 r278 709 709 } 710 710 711 public void refreshSize(Dimension size) { 712 assert (size != null); 713 int height = size.height; 714 int width = size.width; 711 public void refreshSize() { 712 //assert (size != null); 715 713 boolean bReparse = false; 716 714 for (Item i : getItems()) { … … 718 716 Float anchorRight = i.getAnchorRight(); 719 717 if (anchorRight != null) { 720 i.set X(width -anchorRight);718 i.setAnchorRight(anchorRight); 721 719 if (i.hasVector()) { 722 720 bReparse = true; … … 724 722 } 725 723 if (anchorBottom != null) { 726 i.set Y(height -anchorBottom);724 i.setAnchorBottom(anchorBottom); 727 725 if (i.hasVector()) { 728 726 bReparse = true; … … 730 728 } 731 729 } 730 731 //Do the anchors on the overlays 732 for(Overlay o: getOverlays()){ 733 o.Frame.refreshSize(); 734 } 735 732 736 if (bReparse) { 733 737 FrameUtils.Parse(this, false);
Note:
See TracChangeset
for help on using the changeset viewer.