diff options
author | Andy Shaw <andy.shaw@qt.io> | 2020-08-06 13:20:07 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2020-08-17 09:36:18 +0000 |
commit | 761dba8b23b7e558acc57b3e481648ce319a4397 (patch) | |
tree | e74e27668dd1c65ec12c0e31d30909b40db261c4 /tests/auto/controls/data/tst_popup.qml | |
parent | 7810b97febd0bfe00132dec785c21ca4a361c818 (diff) |
Get the scale of the popup item when setting the parent item
As there are some styles that will do an transition which animates the
scale then we need to size and position based on the final scale it
will have to avoid a jump after it has finished the transition.
Fixes: QTBUG-84488
Change-Id: I4571eb18c921e81de319838ac0e8d3fe3513d438
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
(cherry picked from commit 64230bf97c18297f45bd5d7ccf99b510c8a612bd)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests/auto/controls/data/tst_popup.qml')
-rw-r--r-- | tests/auto/controls/data/tst_popup.qml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/controls/data/tst_popup.qml b/tests/auto/controls/data/tst_popup.qml index 71d6f2d7..57d5cccc 100644 --- a/tests/auto/controls/data/tst_popup.qml +++ b/tests/auto/controls/data/tst_popup.qml @@ -1276,6 +1276,9 @@ TestCase { { visible: true, width: 100, height: 100 }) verify(control) verify(control.visible) + // If there is a transition then make sure it is finished + if (control.enter !== null) + tryCompare(control.enter, "running", false) compare(control.parent, control.Overlay.overlay) compare(control.x, 0) compare(control.y, 0) |