Skip to content

Commit c385e04

Browse files
authored
Merge pull request #3141 from thocevar/resize
Let the main area shrink further when control area is hidden.
2 parents dc51c3d + 23106aa commit c385e04

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Orange/widgets/widget.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,12 @@ def copy_to_clipboard(self):
479479
def storeControlAreaVisibility(self, visible):
480480
self.controlAreaVisible = visible
481481

482+
# Set minimum width to 1 (overrides minimumSizeHint) when control area
483+
# is not visible to allow the main area to shrink further. Reset the minimum
484+
# width with a 0 if control area is visible.
485+
self.__splitter.widget(0).setMinimumWidth(int(not visible))
486+
self.updateGeometry()
487+
482488
def __restoreWidgetGeometry(self, geometry):
483489
# type: (bytes) -> bool
484490
def _fullscreen_to_maximized(geometry):

0 commit comments

Comments
 (0)