dabo Commit
Revision 6172
Date: 2010-10-26 18:57:36 -0700 (Tue, 26 Oct 2010)
Author: Ed
Trac: http://trac.dabodev.com/changeset/6172

Changed:
U   trunk/ide/ClassDesigner.py

Log:
When an object is a sizer inside of a sizer, the "Edit Sizer Properties" has to 
display information for both the sizer itself, and properties of its 
controlling sizer. Formerly these were arranged vertically, but it was noticed 
that the result was taller than some low-resolution displays could accommodate. 
So now the two sets of information are displayed horizontally, where they 
should fit better on all resolution displays.


Diff:
Modified: trunk/ide/ClassDesigner.py
===================================================================
--- trunk/ide/ClassDesigner.py  2010-10-27 01:05:02 UTC (rev 6171)
+++ trunk/ide/ClassDesigner.py  2010-10-27 01:57:36 UTC (rev 6172)
@@ -1531,6 +1531,9 @@
                def fillDlg(dlg):
                        """Adds the appropriate controls to the dialog."""
                        hasBoth = szProps and selfProps
+                       if hasBoth:
+                               hsz = dabo.ui.dSizer("h")
+                               dlg.Sizer.append(hsz, "x", border=5)
                        for propSource in (szProps, selfProps):
                                if not propSource:
                                        continue
@@ -1541,15 +1544,15 @@
                                        if isAddingSelfProps:
                                                # Add a separator between 
sections if there are props
                                                # in both lists.
-                                               dlg.Sizer.appendSpacer(6)
+                                               hsz.appendSpacer(6)
 
                                        bx = dui.dBorderSizer(dlg)
                                        if propSource == szProps:
                                                bx.Caption = _("Controlling 
Sizer Properties")
                                        else:
                                                bx.Caption = _("Properties for 
This Sizer")
-                                       dlg.Sizer.append(bx, "x", border=5)
                                        bx.append(sz, border=20)
+                                       hsz.append(bx, "x", border=5)
                                else:
                                        # Just one section, so add the grid to 
the dialog's sizer
                                        dlg.Sizer.append(sz, border=20)



_______________________________________________
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