Author: bugman Date: Sat Aug 6 22:23:26 2011 New Revision: 14224 URL: http://svn.gna.org/viewcvs/relax?rev=14224&view=rev Log: Fixes for the handling of borders in the about dialogs. Modified: branches/gui_testing/gui/about.py Modified: branches/gui_testing/gui/about.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/about.py?rev=14224&r1=14223&r2=14224&view=diff ============================================================================== --- branches/gui_testing/gui/about.py (original) +++ branches/gui_testing/gui/about.py Sat Aug 6 22:23:26 2011 @@ -92,7 +92,7 @@ self.virtual_size() # Set the window size. - self.SetSize((self.virt_x, self.dim_y + 2*self.border)) + self.SetSize((self.virt_x, self.dim_y)) # Set the window virtual size. self.window.SetVirtualSize((self.virt_x, self.virt_y)) @@ -137,7 +137,7 @@ self.html.SetDC(self.dc, 1.0) # Set the size of the HTML object. - self.html.SetSize(self.virt_x - 2*self.border, self.virt_y - 2*self.border) + self.html.SetSize(self.virt_x, self.virt_y) # Add the text. self.html.SetHtmlText(text) @@ -462,17 +462,13 @@ # Dimensions of the drawing area. if self.max_x: - x = self.max_x + self.virt_x = self.max_x else: - x = self.dim_x + self.virt_x = self.dim_x if self.max_y: - y = self.max_y + self.virt_y = self.max_y else: - y = self.dim_y - - # Borders. - self.virt_x = x + 2*self.border - self.virt_y = y + 2*self.border + self.virt_y = self.dim_y