tray menu: defer showPanel to onCompleted to fix anchor position race
This commit is contained in:
parent
d4001f7900
commit
345326c1e3
1 changed files with 3 additions and 1 deletions
|
|
@ -6,7 +6,9 @@ import "../services" as S
|
|||
M.HoverPanel {
|
||||
id: menuWindow
|
||||
|
||||
showPanel: true
|
||||
// Deferred: anchorItem must be set before _show() computes position.
|
||||
// Static `showPanel: true` would race with anchorItem initialization.
|
||||
Component.onCompleted: showPanel = true
|
||||
|
||||
required property var handle
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue