Ignore:
Timestamp:
Nov 15, 2017 8:48:27 AM (6 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
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
Children:
84df556
Parents:
c7ebb37
Message:

Fixed Mdi area and widget resizing issue(s)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/MainWindow/GuiManager.py

    rd4881f6a rd1955d67  
    192192        self._current_perspective = Perspectives.PERSPECTIVES[str(perspective_name)](parent=self) 
    193193 
    194         self._workspace.workspace.addSubWindow(self._current_perspective) 
     194        subwindow = self._workspace.workspace.addSubWindow(self._current_perspective) 
    195195 
    196196        # Resize to the workspace height 
    197197        workspace_height = self._workspace.workspace.sizeHint().height() 
    198198        perspective_size = self._current_perspective.sizeHint() 
    199         #if workspace_height < perspective_size.height(): 
    200199        perspective_width = perspective_size.width() 
    201200        self._current_perspective.resize(perspective_width, workspace_height-10) 
     201        # Resize the mdi area to match the widget within 
     202        subwindow.resize(subwindow.minimumSizeHint()) 
    202203 
    203204        self._current_perspective.show() 
Note: See TracChangeset for help on using the changeset viewer.