Skip to content

Commit 9609a43

Browse files
sync: from linuxdeepin/dtkdeclarative
Synchronize source files from linuxdeepin/dtkdeclarative. Source-pull-request: linuxdeepin/dtkdeclarative#491
1 parent 39488e5 commit 9609a43

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

qt6/src/qml/TitleBar.qml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Item {
1414
width: Window.window.width
1515
// it's binding `height` instead of `visible` property,
1616
// because MouseArea should accept event keeping visible.
17-
implicitHeight: (!__isFullScreen || __isVisible) ? DS.Style.titleBar.height : 1
17+
height: (!__isFullScreen || __isVisible) ? DS.Style.titleBar.height : 1
1818

1919
property string title: Window.window.title
2020
property alias icon: iconLabel
@@ -75,15 +75,16 @@ Item {
7575
Loader {
7676
id: background
7777
active: false
78-
anchors.fill: parent
78+
width: control.width
79+
height: control.height
7980
sourceComponent: D.InWindowBlur {
8081
}
8182
}
8283

8384
ColumnLayout {
84-
id: content
8585
spacing: 0
86-
anchors.fill: parent
86+
width: control.width
87+
height: control.height
8788
visible: control.height > 1
8889

8990
Loader {

0 commit comments

Comments
 (0)