dabo Commit
Revision 4859
Date: 2008-12-17 10:52:27 -0800 (Wed, 17 Dec 2008)
Author: Ed
Trac: http://trac.dabodev.com/dabo/changeset/4859

Changed:
U   trunk/ide/ClassDesigner.py

Log:
Fixed a problem with a newly-added sizer not respecting the settings of the 
slot into which it was being added. Thanks to Noel Macalalad for pointing this 
out.


Diff:
Modified: trunk/ide/ClassDesigner.py
===================================================================
--- trunk/ide/ClassDesigner.py  2008-12-17 18:49:02 UTC (rev 4858)
+++ trunk/ide/ClassDesigner.py  2008-12-17 18:52:27 UTC (rev 4859)
@@ -3202,8 +3202,10 @@
                        obj = self.getMainLayoutPanel(obj)
                try:
                        sizerAtts = 
obj.getDesignerDict()["attributes"]["sizerInfo"]
-                       sizerAtts["Expand"] = True
-                       sizerAtts["Proportion"] = 1
+                       if sizerAtts.get("Expand") is None:
+                               sizerAtts["Expand"] = True
+                       if sizerAtts.get("Proportion") is None:
+                               sizerAtts["Proportion"] = 1
                except:
                        sizerAtts = None
                while isinstance(obj, LayoutPanel):




_______________________________________________
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