aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2018-09-05 21:42:54 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2018-09-07 08:32:48 +0000
commit38151c0581a5e248044df1a7bff1e23122b1e76f (patch)
tree709cf4352463e4e88547736cc96639b9a7f559cc
parent9dee534836092787d774be7face029b5cf53e546 (diff)
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 <simon.hausmann@qt.io>
-rw-r--r--examples/quick/shared/LauncherList.qml2
1 files changed, 0 insertions, 2 deletions
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()
}