Fixed model select frame size calculation

Resolves #219
This commit is contained in:
Raphael Coeffic
2021-06-15 12:01:28 +02:00
parent 5471b233f2
commit ba7ce9e911
+3 -1
View File
@@ -277,7 +277,9 @@ class ModelCategoryPageBody : public FormWindow
#endif
}
y += MODEL_SELECT_CELL_HEIGHT + MODEL_CELL_PADDING;
if (index % MODEL_CELLS_PER_LINE != 0) {
y += MODEL_SELECT_CELL_HEIGHT + MODEL_CELL_PADDING;
}
setInnerHeight(y);
if (category->empty()) {