mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-04 02:34:45 +00:00
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:
parent
2fab1b0dd1
commit
e7f82ab394
2 changed files with 56 additions and 52 deletions
|
|
@ -213,8 +213,10 @@ NanoShell.FullScreenOverlay {
|
|||
PlasmaComponents.Control {
|
||||
id: contentArea
|
||||
z: 1
|
||||
y: 0
|
||||
x: drawerX
|
||||
width: drawerWidth
|
||||
height: contentItem.height
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue