Changeset 7bce31d in sasview


Ignore:
Timestamp:
Oct 14, 2011 7:12:40 PM (13 years ago)
Author:
Jae Cho <jhjcho@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
c5272d1
Parents:
805e2e7
Message:

improved the help resetting problem on resizing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fittingview/src/sans/perspectives/fitting/help_panel.py

    r34ffeed r7bce31d  
    128128        splitter.AppendWindow(rpanel) 
    129129        self.SetSizer(vbox1) 
    130         
     130 
     131        self.splitter = splitter 
    131132        self.Centre() 
    132133        self.Show(True) 
     134        self.Bind(wx.EVT_SIZE, self.on_Size) 
    133135         
    134136    def OnButtonClicked(self, event): 
     
    146148         
    147149        self.rhelp.LoadPage(os.path.abspath(link)) 
     150         
     151    def on_Size(self, event): 
     152        """ 
     153        Recover the scroll position On Size 
     154        """ 
     155        pos = self.rhelp.GetScrollPos(wx.VERTICAL) 
     156        size = self.GetClientSize() 
     157        self.splitter.SetSize(size) 
     158        self.rhelp.Show(False) 
     159        self.rhelp.ScrollLines(pos) 
     160        self.rhelp.Show(True) 
     161        #self.rhelp.SetScrollPos(wx.VERTICAL, pos1, True) 
     162 
    148163     
    149164         
Note: See TracChangeset for help on using the changeset viewer.