From 38151c0581a5e248044df1a7bff1e23122b1e76f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Wed, 5 Sep 2018 21:42:54 +0200 Subject: examples: Fix LauncherList page components being hidden on window resize The binding for x to -width will take effect after the enter-transition finishes animating x from -page.width to 0, but will not update the x value for some reason, so the item stays at the correct position at the end of the transition, even if the binding is still active. Once the window is resized though, and the new window width gets propagated to the page component, the x-value will be re-evaluated and the page component ends up on -width again, hiding it. It doesn't look like the explicit property binding adds anything to the example, as the transition takes care of starting at -width, so by removing it we fix the issue. Change-Id: If0e693ae85fe3e0aa49f59832cbb1ba2804b7b6b Reviewed-by: Simon Hausmann --- examples/quick/shared/LauncherList.qml | 2 -- 1 file changed, 2 deletions(-) (limited to 'examples') diff --git a/examples/quick/shared/LauncherList.qml b/examples/quick/shared/LauncherList.qml index e532b53e7f..a4c75e544e 100644 --- a/examples/quick/shared/LauncherList.qml +++ b/examples/quick/shared/LauncherList.qml @@ -106,8 +106,6 @@ Rectangle { anchors.fill: parent } - x: -width - function show() { showAnim.start() } -- cgit v1.2.3