qtquick: titlebar's height is reduced to 0 when invisible

otherwise we see an empty space when it's not visible
This commit is contained in:
Sergio Martins
2020-12-02 23:33:04 +00:00
parent 97679abb02
commit 6c1026956a
2 changed files with 2 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ KDDW.TitleBarBase {
color: "black"
border.color: "orange"
border.width: 2
height: 50
height: visible ? 50 : 0
Text {
color: "orange"

View File

@@ -25,7 +25,7 @@ TitleBarBase {
readonly property QtObject closeButton: closeButton
color: "#eff0f1"
height: 30
height: visible ? 30 : 0
Text {
id: title