From 188cecbb42ec675bdebeaa3e821efc992afc14ed Mon Sep 17 00:00:00 2001 From: Damocles Date: Thu, 16 Apr 2026 23:44:42 +0200 Subject: [PATCH] =?UTF-8?q?hoverpanel:=20fix=20y=20binding=20bug=20?= =?UTF-8?q?=E2=80=94=20y:-height=20survives=200=E2=86=920=20animation=20wh?= =?UTF-8?q?en=20layout=20unfinished=20at=20show=20time?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/HoverPanel.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/HoverPanel.qml b/modules/HoverPanel.qml index 10635a9..efe889b 100644 --- a/modules/HoverPanel.qml +++ b/modules/HoverPanel.qml @@ -120,6 +120,10 @@ PanelWindow { function _show() { _updatePosition(); + // Explicitly set y before animating — avoids the y:-height binding (live, depends on + // _panelColumn.height) surviving a 0→0 no-op animation when layout isn't done yet. + panelContainer.y = -(panelContainer.height > 0 ? panelContainer.height : 400); + panelContainer.opacity = 0; _winVisible = true; hideAnim.stop(); showAnim.start(); @@ -229,7 +233,7 @@ PanelWindow { Item { id: panelContainer x: 0 - y: -height + y: 0 width: root.contentWidth height: _panelColumn.height opacity: 0