fix menu attr
This commit is contained in:
parent
59458cade3
commit
09b73d7cb1
1 changed files with 6 additions and 8 deletions
|
|
@ -42,15 +42,13 @@ PanelWindow {
|
|||
id: panel
|
||||
|
||||
x: Math.max(0, Math.min(
|
||||
Math.round(menuWindow.anchorX - menuStack.implicitWidth / 2),
|
||||
menuWindow.width - menuStack.implicitWidth
|
||||
Math.round(menuWindow.anchorX - menuStack.width / 2),
|
||||
menuWindow.width - menuStack.width
|
||||
))
|
||||
y: M.Theme.barHeight
|
||||
|
||||
implicitWidth: menuStack.implicitWidth
|
||||
implicitHeight: menuStack.implicitHeight
|
||||
width: implicitWidth
|
||||
height: implicitHeight
|
||||
width: menuStack.width
|
||||
height: menuStack.height
|
||||
|
||||
// Eat clicks inside the panel so they don't reach the dismiss area above
|
||||
MouseArea {
|
||||
|
|
@ -69,8 +67,8 @@ PanelWindow {
|
|||
StackView {
|
||||
id: menuStack
|
||||
|
||||
implicitWidth: currentItem ? currentItem.implicitWidth : 0
|
||||
implicitHeight: currentItem ? currentItem.implicitHeight : 0
|
||||
width: currentItem ? currentItem.implicitWidth : 0
|
||||
height: currentItem ? currentItem.implicitHeight : 0
|
||||
|
||||
// Push the root page once the stack is ready
|
||||
Component.onCompleted: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue