diff options
author | Aleksei Korkov <akorkov@luxoft.com> | 2020-02-20 18:36:18 +0300 |
---|---|---|
committer | Aleksei Korkov <akorkov@luxoft.com> | 2020-03-30 10:11:12 +0000 |
commit | 847d59cd91dc7cf2bdf16680dbb6a2c39f318155 (patch) | |
tree | 7abb5e3d2601802527bdc765f6795682c986cbb5 /sysui | |
parent | 1b6b284525db7bbd3da7368c06ba4273ce3404ab (diff) |
[sysui] Fix popup animations and positions after resizing
- fixed popups in Settings, Music, Tuner, Climate, Sheets
Fixes: AUTOSUITE-1476
Change-Id: Ie74b1b442085ba3b2af35b1140e0092355bd71e6
Reviewed-by: Egor Nemtsev <enemtsev@luxoft.com>
Diffstat (limited to 'sysui')
-rw-r--r-- | sysui/centerconsole/ApplicationPopup.qml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sysui/centerconsole/ApplicationPopup.qml b/sysui/centerconsole/ApplicationPopup.qml index 4dcebb21..1d7ea157 100644 --- a/sysui/centerconsole/ApplicationPopup.qml +++ b/sysui/centerconsole/ApplicationPopup.qml @@ -56,6 +56,18 @@ PopupItem { objectFollowsItemSize: false } + Connections { + target: root + // reset popup parameters on scale change + onHeightChanged: { + if ("open" === root.state) { + root.originItemX = root.window.windowProperty("originItemX") + root.originItemY = root.window.windowProperty("originItemY") + root.y = window.windowProperty("popupY") + } + } + } + Component.onCompleted: { var nativePopup = !!window.popup if (nativePopup) { |