Changeset 133 for trunk/src/org/expeditee/agents/Format.java
- Timestamp:
- 07/10/08 15:50:20 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/agents/Format.java
r80 r133 108 108 int maxX = 0; 109 109 int maxY = 0; 110 for (Item it em: list) {111 maxX = Math.max(maxX, it em.getX() + item.getBoundsWidth());112 maxY = Math.max(maxY, it em.getY() + item.getBoundsHeight());110 for (Item it : list) { 111 maxX = Math.max(maxX, it.getX() + it.getBoundsWidth()); 112 maxY = Math.max(maxY, it.getY() + it.getBoundsHeight()); 113 113 } 114 114 115 115 int xCheck = maxX; 116 for (Item it em: columns.get(i + 1))116 for (Item it : columns.get(i + 1)) 117 117 xCheck = Math.max(xCheck, maxX 118 + /* item.getX() + */it em.getBoundsWidth());118 + /* item.getX() + */it.getBoundsWidth()); 119 119 120 120 if (xCheck < FrameGraphics.getMaxSize().width) { … … 123 123 columnHeads.get(i + 1).setX(maxX); 124 124 125 for (Item it em: columns.get(i + 1))126 if (it em.getX() < maxX && item.getY() < maxY)127 it em.setX(maxX);125 for (Item it : columns.get(i + 1)) 126 if (it.getX() < maxX && it.getY() < maxY) 127 it.setX(maxX); 128 128 } 129 129
Note:
See TracChangeset
for help on using the changeset viewer.