Title: [commits] (stearns) [11193] Re-fix bug 6124 (layout errors in Detail View), r=robin: this is a different case caused by the workaround for bug 5669: it fixed a different layout problem by hiding/showing the control "a little while" after creating it.
Revision
11193
Author
stearns
Date
2006-07-18 14:12:27 -0700 (Tue, 18 Jul 2006)

Log Message

Re-fix bug 6124 (layout errors in Detail View), r=robin: this is a different case caused by the workaround for bug 5669: it fixed a different layout problem by hiding/showing the control "a little while" after creating it. In this case, however, the control was hidden in the meantime, so blindly showing it was bad.

Modified Paths

Diff

Modified: trunk/chandler/parcels/osaf/framework/attributeEditors/AttributeEditors.py (11192 => 11193)

--- trunk/chandler/parcels/osaf/framework/attributeEditors/AttributeEditors.py	2006-07-18 20:55:04 UTC (rev 11192)
+++ trunk/chandler/parcels/osaf/framework/attributeEditors/AttributeEditors.py	2006-07-18 21:12:27 UTC (rev 11193)
@@ -1175,7 +1175,7 @@
             # hack to work around bug 5669 until the underlying wx bug is fixed.
             if '__WXMAC__' in wx.PlatformInfo: 
                 def showhide(ctrl):
-                    if ctrl:
+                    if ctrl and ctrl.IsShown():
                         ctrl.Hide()
                         ctrl.Show()
                 wx.CallAfter(showhide, control)




_______________________________________________
Commits mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/commits

Reply via email to