Author: bugman Date: Wed Jun 13 21:51:27 2012 New Revision: 16905 URL: http://svn.gna.org/viewcvs/relax?rev=16905&view=rev Log: The about model-free dialog no longer has grey at the bottom in MS Windows. The wx.ScrolledWindow.GetScrollPixelsPerUnit() function is now used to determine how many pixels the y scrolling is, and rounds up the virtual size based on that. Modified: trunk/gui/analyses/auto_model_free.py Modified: trunk/gui/analyses/auto_model_free.py URL: http://svn.gna.org/viewcvs/relax/trunk/gui/analyses/auto_model_free.py?rev=16905&r1=16904&r2=16905&view=diff ============================================================================== --- trunk/gui/analyses/auto_model_free.py (original) +++ trunk/gui/analyses/auto_model_free.py Wed Jun 13 21:51:27 2012 @@ -129,10 +129,11 @@ # Add space to the bottom. self.offset(self.border) - # Round the offset up to the nearest factor of 20 (needed for scrolling for at least GTK+). + # Round the offset up to the nearest factor of the scroll inc (needed for all scrolling). + scroll_x, scroll_y = self.window.GetScrollPixelsPerUnit() y = self.offset() self.offset(-y) - y = int(ceil(y/20.) * 20) + y = int(ceil(y/float(scroll_y)) * scroll_y) self.offset(y) # Resize the window.