Skip to content

Commit

Permalink
size cannot be smaller than 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Timm committed Jun 27, 2024
1 parent ad7682b commit 51fcff0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions qml/CollageMenuForm.ui.qml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@ Item {
property double aimedRatio: printerRatio

// SIZING
property double availableWidth: parent.width - rightMargin - leftMargin
property double availableHeight: parent.height - bottomMargin - topMargin
property double calculatedWidth: parent.width - rightMargin - leftMargin
property double calculatedHeight: parent.height - bottomMargin - topMargin

property double availableWidth: calculatedWidth > 10 ? calculatedWidth : 10
property double availableHeight: calculatedHeight > 10 ? calculatedHeight : 10

property bool parentIsLarge: parentRatio > aimedRatio

Expand Down

0 comments on commit 51fcff0

Please sign in to comment.