Changeset ab638a3 in sasview for sansguiframe/src


Ignore:
Timestamp:
Oct 15, 2011 3:02:28 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:
294efd5
Parents:
1f2560b
Message:

temp commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/local_perspectives/plotting/Plotter1D.py

    r1f2560b rab638a3  
    171171        """ 
    172172        # It was found that wx >= 2.9.3 sends an event even if no size changed. 
    173         # So manually recode the size (=x_size) and compare here. 
     173        # So manually record the size (=x_size) and compare here. 
     174        print "x", self.x_size, self.GetSize() 
    174175        if self.x_size != None: 
    175176            if self.x_size == self.GetSize(): 
     
    177178                self.canvas.set_resizing(self.resizing) 
    178179                return 
    179         self.x_size = self.GetSize() 
    180         print "x", self.x_size, self.resizing 
     180        #self.x_size = self.GetSize() 
     181         
    181182        # Ready for another event 
    182183        # Do not remove this Skip. Otherwise it will get runtime error on wx>=2.9. 
     
    192193            x_size = self.size 
    193194        else: 
     195            tw, th = self.toolbar.GetSizeTuple() 
    194196            x_size, y_size = self.GetClientSizeTuple() 
    195         print "client", self.size,y_size, self.GetClientSize() 
    196         self.canvas.SetSize(client_size) 
     197            self.canvas.SetSize(wx.Size(x_size, th+y_size)) 
     198        #print "client", self.size,y_size, self.GetClientSize() 
     199         
    197200    def set_resizing(self, resizing=False): 
    198201        """ 
Note: See TracChangeset for help on using the changeset viewer.