diff --git a/Modules/Loadable/Segmentations/Widgets/Resources/UI/qMRMLSegmentEditorWidget.ui b/Modules/Loadable/Segmentations/Widgets/Resources/UI/qMRMLSegmentEditorWidget.ui index 51275e0efbe142212761962bc034e6e86ceb838b..a36614e8fa31f1e42c2e87cfefb0221baaa36793 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 8a4c08ca2a64bd66a99ba9583b9af2b11de46292..c83ef06929cc6b95791c80d8ef618b440184773d 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 0fc1fe9d473d3ef67d1ad2e330f3aac276f1330a..ef63d1e5115a9dc659ed3d1b7a0aaac4699a1fb7 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 2e0c79f5e50db14d0a36f34c5a449b4d5dee8363..8ebf4b49ee9f5d223c1af62afb118f00d3ab5768 100644 --- a/Modules/Scripted/SegmentEditor/SegmentEditor.py +++ b/Modules/Scripted/SegmentEditor/SegmentEditor.py @@ -60,6 +60,7 @@ class SegmentEditorWidget(ScriptedLoadableModuleWidget, VTKObservationMixin): 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