mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3583 Property Editor : Set unused grid cells to stretch 0
This commit is contained in:
parent
a3aeb424b3
commit
2143673aa7
@ -241,10 +241,17 @@ void caf::PdmUiFormLayoutObjectEditor::recursivelyConfigureAndUpdateUiOrderingIn
|
||||
}
|
||||
}
|
||||
}
|
||||
// Set last row to stretch
|
||||
if (currentRowIndex >= 0)
|
||||
|
||||
// Set last row with content to stretch
|
||||
if (currentRowIndex >= 0 && currentRowIndex < parentLayout->rowCount())
|
||||
{
|
||||
parentLayout->setRowStretch(currentRowIndex, 1);
|
||||
parentLayout->setRowStretch(currentRowIndex++, 1);
|
||||
}
|
||||
|
||||
// Set remaining rows to stretch zero, as we want the row with content to stretch all the way
|
||||
while (currentRowIndex >= 0 && currentRowIndex < parentLayout->rowCount())
|
||||
{
|
||||
parentLayout->setRowStretch(currentRowIndex++, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user