From 15a61f88e0ac7e2aac64745a4ea26343cdd917e5 Mon Sep 17 00:00:00 2001 From: Gaute Lindkvist Date: Wed, 26 Sep 2018 14:45:56 +0200 Subject: [PATCH] Fix row stretch issue. --- .../cafUserInterface/cafPdmUiFormLayoutObjectEditor.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Fwk/AppFwk/cafUserInterface/cafPdmUiFormLayoutObjectEditor.cpp b/Fwk/AppFwk/cafUserInterface/cafPdmUiFormLayoutObjectEditor.cpp index c53e85fdf5..ad40a41a0b 100644 --- a/Fwk/AppFwk/cafUserInterface/cafPdmUiFormLayoutObjectEditor.cpp +++ b/Fwk/AppFwk/cafUserInterface/cafPdmUiFormLayoutObjectEditor.cpp @@ -250,8 +250,10 @@ void caf::PdmUiFormLayoutObjectEditor::recursivelyConfigureAndUpdateUiOrderingIn } } // Set last row to stretch - parentLayout->setRowStretch(currentRowIndex, 10); - + if (currentRowIndex >= 0) + { + parentLayout->setRowStretch(currentRowIndex, 1); + } } //--------------------------------------------------------------------------------------------------