dabo Commit
Revision 6551
Date: 2011-04-14 17:01:27 -0700 (Thu, 14 Apr 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6551

Changed:
U   trunk/ide/ReportDesigner.py

Log:
Fixed the anchors in the designer which were always rendering as (top,left) no
matter what.


Diff:
Modified: trunk/ide/ReportDesigner.py
===================================================================
--- trunk/ide/ReportDesigner.py 2011-04-14 23:46:01 UTC (rev 6550)
+++ trunk/ide/ReportDesigner.py 2011-04-15 00:01:27 UTC (rev 6551)
@@ -1582,16 +1582,9 @@
                        width, height = (rect[2], rect[3])
                        thickness = self._anchorThickness
 
-                       if "hAnchor" in obj:
-                               hAnchor = obj.getProp("hAnchor").lower()
-                       else:
-                               hAnchor = "left"
+                       hAnchor = obj.getProp("hAnchor").lower()
+                       vAnchor = obj.getProp("vAnchor").lower()
 
-                       if "vAnchor" in obj:
-                               vAnchor = obj.getProp("vAnchor").lower()
-                       else:
-                               vAnchor = "top"
-
                        anchors = {"lt": ["left", "top", x-1, y-1],
                                        "lb": ["left", "bottom", x-1, 
y+height-thickness+1],
                                        "ct": ["center", "top", 
x+(.5*width)-(.5*thickness), y-1],



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to