dabo Commit
Revision 2034
Date: 2006-03-24 09:41:34 -0800 (Fri, 24 Mar 2006)
Author: paul

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

Log:
Attempt to fix the scrollbars not appearing on the select page in datanav
apps. Working on Linux.


Diff:
Modified: trunk/dabo/ui/uiwx/dPage.py
===================================================================
--- trunk/dabo/ui/uiwx/dPage.py 2006-03-24 16:14:53 UTC (rev 2033)
+++ trunk/dabo/ui/uiwx/dPage.py 2006-03-24 17:41:34 UTC (rev 2034)
@@ -1,3 +1,4 @@
+import dabo
 import dPanel, dSizer
 import dabo.dEvents as dEvents
 from dabo.dLocalize import _
@@ -40,14 +41,15 @@
 
        def __onPageEnter(self, evt):
                if not self.itemsCreated:
-                       self.createItems()
-                       self.itemsCreated = True
-                       self.layout()
-                       
-                       # Needed on Linux to get the sizer to layout:
-                       self.Size = (-1,-1)
+                       dabo.ui.callAfter(self._createItems)
 
-                                               
+
+       def _createItems(self):
+               self.createItems()
+               self.itemsCreated = True
+               self.Sizer.FitInside(self)
+
+
        def __onPageLeave(self, evt):
                if hasattr(self, "Form"):
                        if hasattr(self.Form, "activeControlValid"):




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to