Ignore:
Timestamp:
Jul 30, 2017 2:16:54 PM (6 years ago)
Author:
vondreele
Message:

fix window behavior - use wx.ScrolledWindow? instead of ScrolledPanel?
remove the special sizing stuff for phase windows - not needed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branch/2frame/GSASIIphsGUI.py

    r2945 r2949  
    986986def SetPhaseWindow(phasePage,mainSizer=None,size=None,Scroll=0):
    987987    phasePage.SetAutoLayout(True)
    988     if not mainSizer is None:
    989         phasePage.SetSizer(mainSizer)
    990         Size = mainSizer.GetMinSize()
    991     else:
    992         Size = phasePage.GetBestSize()
    993     Size[0] += 40
    994     phasePage.SetScrollbars(10,10,Size[0]/10-4,Size[1]/10-1)
    995     phasePage.Scroll(0,Scroll)
    996     phasePage.GetTopLevelParent().dataWindow.SetDataSize()
     988    phasePage.SetScrollRate(1,1)
     989    phasePage.SendSizeEvent()
     990
     991#    if not mainSizer is None:
     992#        phasePage.SetSizer(mainSizer)
     993#        Size = mainSizer.GetMinSize()
     994#    else:
     995#        Size = phasePage.GetBestSize()
     996#    Size[0] += 40
     997#    phasePage.SetScrollbars(10,10,Size[0]/10-4,Size[1]/10-1)
     998#    phasePage.Scroll(0,Scroll)
     999#    phasePage.GetTopLevelParent().dataWindow.SetDataSize()
    9971000   
    9981001def FindBondsDraw(data):   
Note: See TracChangeset for help on using the changeset viewer.