Changeset 1c2bf90 in sasview for src/sas


Ignore:
Timestamp:
Nov 28, 2015 6:52:20 PM (9 years ago)
Author:
butler
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:
792e6be, 66f21cd
Parents:
abcbe09
Message:

Need to use FitInside? in a few places to ensure whole window gets
properly resized. Fixes ticket #488

Location:
src/sas/perspectives/fitting
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/sas/perspectives/fitting/basepage.py

    r6f16e25 r1c2bf90  
    24132413        #draw the model with the current dispersity 
    24142414        self._draw_model() 
    2415         self.sizer4_4.Layout() 
    2416         self.sizer5.Layout() 
    2417         self.Layout() 
    2418         self.Refresh() 
     2415        ## Need to use FitInside again here to replace the next four lines. 
     2416        ## Otherwised polydispersity off does not resize the scrollwindow.  
     2417        ## PDB Nov 28, 2015 
     2418        self.FitInside() 
     2419#        self.sizer4_4.Layout() 
     2420#        self.sizer5.Layout() 
     2421#        self.Layout() 
     2422#        self.Refresh() 
    24192423 
    24202424    def _layout_sizer_noDipers(self): 
  • src/sas/perspectives/fitting/fitpage.py

    r6f16e25 r1c2bf90  
    22642264 
    22652265        self.sizer_set_smearer.Layout() 
    2266         self.Layout() 
     2266        ## we need FitInside here not just self.Layout to ensure all the sizers 
     2267        ## end up with the necessasary space to in the scroll panel. In 
     2268        ## particular the compute and fit buttons end up on top of each other 
     2269        ## PDB Nov 28 2015.  
     2270        self.FitInside() 
    22672271 
    22682272        if event != None: 
     
    24382442        self._show_smear_sizer() 
    24392443        self.sizer_set_smearer.Layout() 
    2440         self.Layout() 
     2444        ## we need FitInside here not just self.Layout to ensure all the sizers 
     2445        ## end up with the necessasary space to in the scroll panel. In 
     2446        ## particular the compute and fit buttons end up on top of each other 
     2447        ## PDB Nov 28 2015.  
     2448        self.FitInside() 
    24412449 
    24422450        if event != None: 
     
    25682576        """ 
    25692577        Create a smear object that will change the way residuals 
    2570         are compute when fitting 
     2578        are computed when fitting 
    25712579        """ 
    25722580        if event != None: 
     
    25832591 
    25842592        self.sizer_set_smearer.Layout() 
    2585         self.Layout() 
     2593        ## we need FitInside here not just self.Layout to ensure all the sizers 
     2594        ## end up with the necessasary space to in the scroll panel. In 
     2595        ## particular the compute and fit buttons end up on top of each other 
     2596        ## PDB Nov 28 2015.  
     2597        self.FitInside() 
    25862598        self._set_weight() 
    25872599 
Note: See TracChangeset for help on using the changeset viewer.