This commit is contained in:
zhuzichu 2024-01-22 15:41:43 +08:00
parent d6325b4f5b
commit 93832fb325
2 changed files with 6 additions and 8 deletions

View File

@ -70,10 +70,10 @@ Item {
topMargin: -1 topMargin: -1
left: layout_header.left left: layout_header.left
} }
width: parent.width
clip: true clip: true
visible: contentHeight+container.y !== 0 visible: contentHeight+container.anchors.topMargin !== 0
height: contentHeight+container.y height: contentHeight+container.anchors.topMargin
width: parent.width
Rectangle{ Rectangle{
id:container id:container
anchors.fill: parent anchors.fill: parent
@ -82,7 +82,6 @@ Item {
color: FluTheme.dark ? Qt.rgba(39/255,39/255,39/255,1) : Qt.rgba(251/255,251/255,253/255,1) color: FluTheme.dark ? Qt.rgba(39/255,39/255,39/255,1) : Qt.rgba(251/255,251/255,253/255,1)
border.color: FluTheme.dark ? Qt.rgba(45/255,45/255,45/255,1) : Qt.rgba(226/255,229/255,234/255,1) border.color: FluTheme.dark ? Qt.rgba(45/255,45/255,45/255,1) : Qt.rgba(226/255,229/255,234/255,1)
anchors.topMargin: -contentHeight anchors.topMargin: -contentHeight
// y: -contentHeight
states: [ states: [
State{ State{
name:"expand" name:"expand"

View File

@ -70,10 +70,10 @@ Item {
topMargin: -1 topMargin: -1
left: layout_header.left left: layout_header.left
} }
width: parent.width
clip: true clip: true
visible: contentHeight+container.y !== 0 visible: contentHeight+container.anchors.topMargin !== 0
height: contentHeight+container.y height: contentHeight+container.anchors.topMargin
width: parent.width
Rectangle{ Rectangle{
id:container id:container
anchors.fill: parent anchors.fill: parent
@ -82,7 +82,6 @@ Item {
color: FluTheme.dark ? Qt.rgba(39/255,39/255,39/255,1) : Qt.rgba(251/255,251/255,253/255,1) color: FluTheme.dark ? Qt.rgba(39/255,39/255,39/255,1) : Qt.rgba(251/255,251/255,253/255,1)
border.color: FluTheme.dark ? Qt.rgba(45/255,45/255,45/255,1) : Qt.rgba(226/255,229/255,234/255,1) border.color: FluTheme.dark ? Qt.rgba(45/255,45/255,45/255,1) : Qt.rgba(226/255,229/255,234/255,1)
anchors.topMargin: -contentHeight anchors.topMargin: -contentHeight
// y: -contentHeight
states: [ states: [
State{ State{
name:"expand" name:"expand"