diff --git a/Modules/Loadable/Segmentations/Widgets/Resources/UI/qMRMLSegmentEditorWidget.ui b/Modules/Loadable/Segmentations/Widgets/Resources/UI/qMRMLSegmentEditorWidget.ui
index 51275e0efbe..a36614e8fa3 100644
--- a/Modules/Loadable/Segmentations/Widgets/Resources/UI/qMRMLSegmentEditorWidget.ui
+++ b/Modules/Loadable/Segmentations/Widgets/Resources/UI/qMRMLSegmentEditorWidget.ui
@@ -211,7 +211,7 @@
0
- 0
+ 100
@@ -258,7 +258,7 @@
-
-
+
0
0
@@ -274,7 +274,7 @@
-
-
+
0
0
@@ -377,7 +377,7 @@
-
-
+
0
0
@@ -468,19 +468,6 @@
- -
-
-
- Qt::Vertical
-
-
-
- 20
- 40
-
-
-
-
diff --git a/Modules/Loadable/Segmentations/Widgets/Resources/UI/qMRMLSegmentsTableView.ui b/Modules/Loadable/Segmentations/Widgets/Resources/UI/qMRMLSegmentsTableView.ui
index 8a4c08ca2a6..c83ef06929c 100644
--- a/Modules/Loadable/Segmentations/Widgets/Resources/UI/qMRMLSegmentsTableView.ui
+++ b/Modules/Loadable/Segmentations/Widgets/Resources/UI/qMRMLSegmentsTableView.ui
@@ -57,9 +57,9 @@
-
-
+
0
- 1
+ 0
diff --git a/Modules/Loadable/Segmentations/Widgets/qMRMLSegmentEditorWidget.cxx b/Modules/Loadable/Segmentations/Widgets/qMRMLSegmentEditorWidget.cxx
index 0fc1fe9d473..ef63d1e5115 100644
--- a/Modules/Loadable/Segmentations/Widgets/qMRMLSegmentEditorWidget.cxx
+++ b/Modules/Loadable/Segmentations/Widgets/qMRMLSegmentEditorWidget.cxx
@@ -1633,14 +1633,11 @@ void qMRMLSegmentEditorWidget::updateEffectsSectionFromMRML()
d->MaskingGroupBox->show();
// Perform updates to prevent layout collapse
- d->EffectHelpBrowser->setMinimumHeight(d->EffectHelpBrowser->sizeHint().height());
if (d->EffectHelpBrowser->layout())
{
d->EffectHelpBrowser->layout()->update();
}
- activeEffect->optionsFrame()->setMinimumHeight(activeEffect->optionsFrame()->sizeHint().height());
activeEffect->optionsLayout()->activate();
- this->setMinimumHeight(this->sizeHint().height());
}
else
{
@@ -3269,21 +3266,16 @@ void qMRMLSegmentEditorWidget::updateEffectLayouts()
if (d->ActiveEffect)
{
- d->EffectHelpBrowser->setMinimumHeight(d->EffectHelpBrowser->sizeHint().height());
if (d->EffectHelpBrowser->layout())
{
d->EffectHelpBrowser->layout()->update();
}
- d->ActiveEffect->optionsFrame()->setMinimumHeight(d->ActiveEffect->optionsFrame()->sizeHint().height());
d->ActiveEffect->optionsLayout()->activate();
}
else
{
- d->OptionsGroupBox->setMinimumHeight(d->OptionsGroupBox->sizeHint().height());
d->OptionsGroupBox->layout()->activate();
}
-
- this->setMinimumHeight(this->sizeHint().height());
}
//-----------------------------------------------------------------------------
diff --git a/Modules/Scripted/SegmentEditor/SegmentEditor.py b/Modules/Scripted/SegmentEditor/SegmentEditor.py
index 2e0c79f5e50..8ebf4b49ee9 100644
--- a/Modules/Scripted/SegmentEditor/SegmentEditor.py
+++ b/Modules/Scripted/SegmentEditor/SegmentEditor.py
@@ -60,6 +60,7 @@ def setup(self):
self.selectParameterNode()
self.editor.setMRMLScene(slicer.mrmlScene)
self.layout.addWidget(self.editor)
+ self.layout.addStretch()
# Observe editor effect registrations to make sure that any effects that are registered
# later will show up in the segment editor widget. For example, if Segment Editor is set