dabo Commit
Revision 6455
Date: 2011-02-22 08:25:21 -0800 (Tue, 22 Feb 2011)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6455

Changed:
U   trunk/dabo/ui/uiwx/dLabel.py

Log:
Fix improper control sizing issue.

Diff:
Modified: trunk/dabo/ui/uiwx/dLabel.py
===================================================================
--- trunk/dabo/ui/uiwx/dLabel.py        2011-02-22 11:58:13 UTC (rev 6454)
+++ trunk/dabo/ui/uiwx/dLabel.py        2011-02-22 16:25:21 UTC (rev 6455)
@@ -29,10 +29,11 @@
                """Event binding is set when WordWrap=True. Tell the label
                to wrap to its current width.
                """
-               if self._inResizeEvent:
-                       return
-               self._inResizeEvent = True
-               dabo.ui.callAfterInterval(100, self.__resizeExecute)
+               if self.WordWrap:
+                       if self._inResizeEvent:
+                               return
+                       self._inResizeEvent = True
+                       dabo.ui.callAfterInterval(100, self.__resizeExecute)
 
 
        def __resizeExecute(self):
@@ -54,7 +55,6 @@
                flag must be reset outside of the execution method.
                """
                self.Parent.unlockDisplayAll()
-               self.update()
                self._inResizeEvent = False
 
 



_______________________________________________
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