Skip to content

Commit

Permalink
Merge pull request biolab#3141 from thocevar/resize
Browse files Browse the repository at this point in the history
Let the main area shrink further when control area is hidden.
  • Loading branch information
ajdapretnar authored Jul 24, 2018
2 parents dc51c3d + 23106aa commit c385e04
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Orange/widgets/widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,12 @@ def copy_to_clipboard(self):
def storeControlAreaVisibility(self, visible):
self.controlAreaVisible = visible

# Set minimum width to 1 (overrides minimumSizeHint) when control area
# is not visible to allow the main area to shrink further. Reset the minimum
# width with a 0 if control area is visible.
self.__splitter.widget(0).setMinimumWidth(int(not visible))
self.updateGeometry()

def __restoreWidgetGeometry(self, geometry):
# type: (bytes) -> bool
def _fullscreen_to_maximized(geometry):
Expand Down

0 comments on commit c385e04

Please sign in to comment.