Author: bugman Date: Fri Jul 22 17:48:47 2011 New Revision: 13839 URL: http://svn.gna.org/viewcvs/relax?rev=13839&view=rev Log: The spectrum and relaxation data lists now post EVT_SIZE events when modified. This forces the parent scrolled panel to properly layout out its contents and refresh. Modified: branches/gui_testing/gui/components/relax_data.py branches/gui_testing/gui/components/spectrum.py Modified: branches/gui_testing/gui/components/relax_data.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/components/relax_data.py?rev=13839&r1=13838&r2=13839&view=diff ============================================================================== --- branches/gui_testing/gui/components/relax_data.py (original) +++ branches/gui_testing/gui/components/relax_data.py Fri Jul 22 17:48:47 2011 @@ -181,6 +181,10 @@ # Size the columns. self.size_cols() + # Post a size event to get the scroll panel to update correctly. + event = wx.PyCommandEvent(wx.EVT_SIZE.typeId, self.parent.GetId()) + wx.PostEvent(self.parent.GetEventHandler(), event) + # Unfreeze. self.grid.Thaw() Modified: branches/gui_testing/gui/components/spectrum.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/components/spectrum.py?rev=13839&r1=13838&r2=13839&view=diff ============================================================================== --- branches/gui_testing/gui/components/spectrum.py (original) +++ branches/gui_testing/gui/components/spectrum.py Fri Jul 22 17:48:47 2011 @@ -187,6 +187,10 @@ # Size the columns. self.size_cols() + # Post a size event to get the scroll panel to update correctly. + event = wx.PyCommandEvent(wx.EVT_SIZE.typeId, self.parent.GetId()) + wx.PostEvent(self.parent.GetEventHandler(), event) + # Unfreeze. self.grid.Thaw()