Skip to content

Commit 34a1205

Browse files
deepin-ci-robot18202781743
authored andcommitted
sync: from linuxdeepin/dtkdeclarative
Synchronize source files from linuxdeepin/dtkdeclarative. Source-pull-request: linuxdeepin/dtkdeclarative#491
1 parent 39488e5 commit 34a1205

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

qt6/src/qml/TitleBar.qml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ Item {
1212
id: control
1313
z: D.DTK.TopOrder
1414
width: Window.window.width
15-
// it's binding `height` instead of `visible` property,
16-
// because MouseArea should accept event keeping visible.
17-
implicitHeight: (!__isFullScreen || __isVisible) ? DS.Style.titleBar.height : 1
15+
height: (!__isFullScreen || __isVisible) ? DS.Style.titleBar.height : 1
1816

1917
property string title: Window.window.title
2018
property alias icon: iconLabel
@@ -75,15 +73,16 @@ Item {
7573
Loader {
7674
id: background
7775
active: false
78-
anchors.fill: parent
76+
width: control.width
77+
height: control.height
7978
sourceComponent: D.InWindowBlur {
8079
}
8180
}
8281

8382
ColumnLayout {
84-
id: content
8583
spacing: 0
86-
anchors.fill: parent
84+
width: control.width
85+
height: control.height
8786
visible: control.height > 1
8887

8988
Loader {

0 commit comments

Comments
 (0)