diff --git a/modules/gui/qt/util/qml/GridSizeHelper.qml b/modules/gui/qt/util/qml/GridSizeHelper.qml index 8e400c12e23773263adb58732058e7b199f5e5cf..9e1d740027da8eccae69e7aa0f55bd26a183720a 100644 --- a/modules/gui/qt/util/qml/GridSizeHelper.qml +++ b/modules/gui/qt/util/qml/GridSizeHelper.qml @@ -65,6 +65,6 @@ QtObject{ // NOTE: Find the maximum picture size for nbItemPerRow == 1, so that we downscale in most of the cases // formula for maxPictureWidth depended on nbItemPerRow would be: // (basePictureWidth + _defaultHorizontalSpacing) * (1 + 1 / nbItemPerRow) - _defaultHorizontalSpacing - readonly property int maxPictureWidth: 2 * basePictureWidth + _defaultHorizontalSpacing + readonly property int maxPictureWidth: (basePictureWidth + _defaultHorizontalSpacing) * (1 + 1 / 3) - _defaultHorizontalSpacing readonly property int maxPictureHeight: (basePictureHeight / basePictureWidth) * maxPictureWidth }