Changeset 2734


Ignore:
Timestamp:
Mar 2, 2017 9:36:12 AM (5 years ago)
Author:
vondreele
Message:

avoid spurious small phase data window after doing Refine. Phase data windows retain user chosen size.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r2727 r2734  
    38713871        Called from the Calculate/Refine menu.
    38723872        '''
    3873         self.dataFrame.userReSize = False               #avoids bad resizing based on MessageDialog
    38743873        Id = G2gd.GetPatternTreeItemId(self,self.root,'Sequential results')
    38753874        if Id:
  • trunk/GSASIIgrid.py

    r2731 r2734  
    26702670            parent = 0
    26712671        if self.userReSize and parent and self.G2frame.PatternTree.GetItemText(parent) == "Phases":
    2672             if self.lastSize == event.EventObject.GetSize():
     2672            newSize = event.EventObject.GetSize()
     2673            if newSize[1] < 200: return             #avois spurious small window after Refine
     2674            if self.lastSize == newSize:
    26732675#                if GSASIIpath.GetConfigValue('debug'):
    26742676#                    print 'no save size=',self.lastSize
    26752677                return
    2676             self.manualPhaseSize = event.EventObject.GetSize()
     2678            self.manualPhaseSize = newSize
    26772679            self.lastSize = event.EventObject.GetSize()
    26782680#            if GSASIIpath.GetConfigValue('debug'):
Note: See TracChangeset for help on using the changeset viewer.