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 {
id: contentArea
z: 1
y: 0
x: drawerX
width: drawerWidth
height: contentItem.height
}
}
}

View file

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