Changeset 4de587d in sasview for sansguiframe/src/sans


Ignore:
Timestamp:
Apr 21, 2013 11:59:58 AM (12 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:
cb6a2b7
Parents:
a2f7fcc
Message:

trying to fix mac datapanel issue.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/gui_manager.py

    ra2f7fcc r4de587d  
    985985        #add data panel  
    986986         
    987         w, h = self._get_panels_size(self._data_panel) 
    988         win = MDIFrame(self, None, 'None', (w,h)) 
    989         win.EnableCloseButton(False) 
     987        #w, h = self._get_panels_size(self._data_panel) 
     988        win = MDIFrame(self, None, 'None') 
     989        #win.EnableCloseButton(False) 
    990990        self._data_panel = DataPanel(parent=win) 
    991991        win.set_panel(self._data_panel) 
    992992        self.panels["data_panel"] = self._data_panel 
     993        w, h = self._get_panels_size(self._data_panel) 
     994        win.SetSize((w, h)) 
    993995        self._data_panel.set_frame(win) 
    994996        style = self.__gui_style & GUIFRAME.MANAGER_ON 
     
    9981000            flag = True 
    9991001        if not IS_WIN: 
    1000             x_pos, _ = frame.GetPositionTuple() 
    1001             frame.SetPosition((x_pos, mac_pos_y + 72)) 
     1002            x_pos, _ = win.GetPositionTuple() 
     1003            win.SetPosition((x_pos, mac_pos_y + 72)) 
    10021004        win.Show(flag) 
    10031005        d_panel_width = w 
Note: See TracChangeset for help on using the changeset viewer.