qtquick: Fix Frame's minimum size

It wasn't accounting for the margins, and the "heightWhenVisible"
property was Nan, making the entire expression be 0
This commit is contained in:
Sergio Martins
2021-03-03 10:08:37 +00:00
parent 5040d3a6b6
commit bd903a0353

View File

@@ -18,7 +18,7 @@ Rectangle {
property QtObject frameCpp
readonly property QtObject titleBarCpp: frameCpp ? frameCpp.titleBar : null
readonly property int nonContentsHeight: titleBar.heightWhenVisible + tabbar.height
readonly property int nonContentsHeight: (titleBar.item ? titleBar.item.heightWhenVisible : 0) + tabbar.height + (2 * contentsMargin) + titleBarContentsMargin
property int contentsMargin: 2
property int titleBarContentsMargin: 1
property bool hasCustomMouseEventRedirector: false