mailr14016 - /branches/gui_testing/gui/components/spectrum.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on July 29, 2011 - 22:31:
Author: bugman
Date: Fri Jul 29 22:31:53 2011
New Revision: 14016

URL: http://svn.gna.org/viewcvs/relax?rev=14016&view=rev
Log:
Fix for the spectra list GUI element on Mac OS X.

The wx.ListCtrl on a Mac has no size set, so instead the size is calculated 
by the row heights, plus
a little bit more.


Modified:
    branches/gui_testing/gui/components/spectrum.py

Modified: branches/gui_testing/gui/components/spectrum.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/components/spectrum.py?rev=14016&r1=14015&r2=14016&view=diff
==============================================================================
--- branches/gui_testing/gui/components/spectrum.py (original)
+++ branches/gui_testing/gui/components/spectrum.py Fri Jul 29 22:31:53 2011
@@ -171,7 +171,7 @@
         wx.PostEvent(self.parent.GetEventHandler(), event)
 
         # Set the minimum height.
-        height = self.height_base + self.height_char * n
+        height = self.height_char * (n + 1) + 50
         self.element.SetMinSize((-1, height))
         self.element.Layout()
 
@@ -203,7 +203,6 @@
         self.element.SetFont(font.normal)
 
         # Store the base heights.
-        self.height_base = self.element.GetSize()[1]
         self.height_char = self.element.GetCharHeight()
 
         # Bind some events.




Related Messages


Powered by MHonArc, Updated Fri Jul 29 23:00:03 2011