fix menu height
This commit is contained in:
parent
5ad933c03b
commit
73443a78b1
3 changed files with 102 additions and 45 deletions
|
|
@ -70,7 +70,7 @@ PanelWindow {
|
|||
id: menuStack
|
||||
|
||||
width: currentItem ? currentItem.width : 0
|
||||
height: currentItem ? currentItem.implicitHeight : 0
|
||||
height: currentItem ? currentItem.height : 0
|
||||
|
||||
// Push the root page once the stack is ready
|
||||
Component.onCompleted: {
|
||||
|
|
@ -107,8 +107,8 @@ PanelWindow {
|
|||
// Back button (shown only in submenus)
|
||||
Item {
|
||||
visible: !page.isRoot
|
||||
implicitWidth: page.implicitWidth
|
||||
implicitHeight: 28
|
||||
width: page.width
|
||||
height: 28
|
||||
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
|
|
@ -144,8 +144,8 @@ PanelWindow {
|
|||
|
||||
required property QsMenuEntry modelData
|
||||
|
||||
implicitWidth: page.implicitWidth
|
||||
implicitHeight: modelData.isSeparator ? 9 : 28
|
||||
width: page.width
|
||||
height: modelData.isSeparator ? 9 : 28
|
||||
|
||||
// Separator line
|
||||
Rectangle {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue