Changeset 2642


Ignore:
Timestamp:
Jan 18, 2017 9:34:12 AM (5 years ago)
Author:
vondreele
Message:

move SetSize? kluge to setSizePosLeft - fixed all the scroll window problems (including the background one)
Change Periodic Table dialog to appear "centre" on GSAS-II main window - no longer too far to the right

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIElemGUI.py

    r2632 r2642  
    4141            self.butWid = 40
    4242        self.SetClientSize(wx.Size(50+18*self.butWid, 250))
    43        
     43        self.Centre()
    4444        i=0
    4545        Elems = ET.ElTable
  • trunk/GSASIIgrid.py

    r2640 r2642  
    25642564#        print 'current position/width:',Pos,Width
    25652565        self.SetSize(Size)
    2566         if self.lastSize[0]:
    2567             Pos[0] += self.lastSize[0]-Size[0]
     2566        Size[1] += 1        #kluge to ensure scrollbar settings & window properly displayed
     2567        self.SetSize(Size)
     2568        Pos[0] += self.lastSize[0]-Size[0]
    25682569        offSet = 0
    25692570        if Pos[0] < clientSize[2]:
  • trunk/GSASIIphsGUI.py

    r2640 r2642  
    7575    phasePage.Scroll(0,Scroll)
    7676    Size[1] = min(500,Size[1])
    77     mainFrame.setSizePosLeft(Size)
    78     Size[1] += 1                    #kluge to get correct scrolling!
    7977    mainFrame.setSizePosLeft(Size)
    8078   
Note: See TracChangeset for help on using the changeset viewer.