Revision: 3498
Author: [email protected]
Date: Wed May  5 14:42:46 2010
Log: Since the location property of a PlaypenComponent is now persisted instead of bounds, the spring layout has been changed to use setLocation instead of setBounds so that it gets persisted.
http://code.google.com/p/power-architect/source/detail?r=3498

Modified:
/trunk/src/main/java/ca/sqlpower/architect/layout/FruchtermanReingoldForceLayout.java

=======================================
--- /trunk/src/main/java/ca/sqlpower/architect/layout/FruchtermanReingoldForceLayout.java Tue Nov 25 12:13:14 2008 +++ /trunk/src/main/java/ca/sqlpower/architect/layout/FruchtermanReingoldForceLayout.java Wed May 5 14:42:46 2010
@@ -132,7 +132,7 @@
             int orphanStartY = frame.height - maxy;
logger.debug("max y is "+maxy+". orphanStartY is "+orphanStartY);
             for (LayoutNode tp : orphanedTables) {
- tp.setBounds(tp.getX(), tp.getY() + orphanStartY, tp.getWidth(), tp.getHeight());
+                tp.setLocation(tp.getX(), tp.getY() + orphanStartY);
             }
             frame.height -= maxy + ORPHAN_BUFFER;
         }

Reply via email to