Changeset d1955d67 in sasview for src/sas/qtgui/MainWindow/GuiManager.py
- Timestamp:
- Nov 15, 2017 6:48:27 AM (7 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/MainWindow/GuiManager.py
rd4881f6a rd1955d67 192 192 self._current_perspective = Perspectives.PERSPECTIVES[str(perspective_name)](parent=self) 193 193 194 s elf._workspace.workspace.addSubWindow(self._current_perspective)194 subwindow = self._workspace.workspace.addSubWindow(self._current_perspective) 195 195 196 196 # Resize to the workspace height 197 197 workspace_height = self._workspace.workspace.sizeHint().height() 198 198 perspective_size = self._current_perspective.sizeHint() 199 #if workspace_height < perspective_size.height():200 199 perspective_width = perspective_size.width() 201 200 self._current_perspective.resize(perspective_width, workspace_height-10) 201 # Resize the mdi area to match the widget within 202 subwindow.resize(subwindow.minimumSizeHint()) 202 203 203 204 self._current_perspective.show()
Note: See TracChangeset
for help on using the changeset viewer.