dabo Commit
Revision 5458
Date: 2009-10-13 14:57:01 -0700 (Tue, 13 Oct 2009)
Author: Paul
Trac: http://trac.dabodev.com/changeset/5458
Changed:
U trunk/dabo/lib/reportWriter.py
Log:
Reportwriter still wasn't doing the right thing for framesets with a fixed
height
and vAnchor of "bottom" or "middle". Fixed.
Diff:
Modified: trunk/dabo/lib/reportWriter.py
===================================================================
--- trunk/dabo/lib/reportWriter.py 2009-10-13 20:36:02 UTC (rev 5457)
+++ trunk/dabo/lib/reportWriter.py 2009-10-13 21:57:01 UTC (rev 5458)
@@ -1077,12 +1077,20 @@
elif hAnchor == "center":
x = x - (width / 2)
- if objType not in ("Frameset", "SpanningLine",
"SpanningRectangle"):
- height = self.getPt(obj.getProp("Height"))
- if vAnchor == "top":
- y = y - height
- elif vAnchor == "middle":
- y = y - (height / 2)
+ if objType not in ("SpanningLine", "SpanningRectangle"):
+ height = obj.getProp("Height")
+ if height is not None:
+ height = self.getPt(height)
+ if objType == "Frameset":
+ if vAnchor == "bottom":
+ y = y + height
+ elif vAnchor == "middle":
+ y = y + (height / 2)
+ else:
+ if vAnchor == "top":
+ y = y - height
+ elif vAnchor == "middle":
+ y = y - (height / 2)
## Do specific things based on object type:
_______________________________________________
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]