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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user