fix top panel sliding in vertical mode

encapsulate in an Item to force the proper implicitHeight, so
the top panel slide works on vertical screen also before it has been
rpotated to horizontal and back
This commit is contained in:
Marco Martin 2020-11-11 16:24:05 +01:00
parent 2fab1b0dd1
commit e7f82ab394
2 changed files with 56 additions and 52 deletions

View file

@ -213,8 +213,10 @@ NanoShell.FullScreenOverlay {
PlasmaComponents.Control { PlasmaComponents.Control {
id: contentArea id: contentArea
z: 1 z: 1
y: 0
x: drawerX x: drawerX
width: drawerWidth width: drawerWidth
height: contentItem.height
} }
} }
} }

View file

@ -293,7 +293,10 @@ Item {
onClosed: quickSettings.closed() onClosed: quickSettings.closed()
contentItem: GridLayout { contentItem: Item {
implicitWidth: quickSettingsParent.implicitWidth
implicitHeight: Math.min(slidingPanel.height, quickSettingsParent.implicitHeight)
GridLayout {
id: panelContents id: panelContents
anchors.fill: parent anchors.fill: parent
implicitWidth: quickSettingsParent.implicitWidth implicitWidth: quickSettingsParent.implicitWidth
@ -345,7 +348,6 @@ Item {
parent: fullRepresentationView.contentItem parent: fullRepresentationView.contentItem
anchors.fill: parent anchors.fill: parent
z: -1 z: -1
onClicked: slidingPanel.close() onClicked: slidingPanel.close()
} }
@ -353,7 +355,7 @@ Item {
//clip: true //clip: true
} }
}
} }
DrawerBackground { DrawerBackground {
id: bottomBar id: bottomBar