diff options
author | Egor Nemtsev <enemtsev@luxoft.com> | 2020-01-30 13:58:29 +0300 |
---|---|---|
committer | Egor Nemtsev <enemtsev@luxoft.com> | 2020-01-30 12:59:17 +0000 |
commit | 58a90b697d5aabaa1e5a4ee304bce40a1e044b54 (patch) | |
tree | 26dd7cea4f4e72655d3d08f11b3c9c2719b43f45 /sysui | |
parent | b3b5a4512636be45e71885c2b9d4491a5efa3b1e (diff) |
[sysui] fix zero scale on center console window resize
Task-number: AUTOSUITE-1430
Change-Id: I139326512a54f7cc0b192c01e3a791999ba83561
Reviewed-by: Grigorii Zimin <gzimin@luxoft.com>
Diffstat (limited to 'sysui')
-rw-r--r-- | sysui/centerconsole/AbstractCenterConsole.qml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sysui/centerconsole/AbstractCenterConsole.qml b/sysui/centerconsole/AbstractCenterConsole.qml index 3e1da7ff..f61ed4f5 100644 --- a/sysui/centerconsole/AbstractCenterConsole.qml +++ b/sysui/centerconsole/AbstractCenterConsole.qml @@ -58,6 +58,11 @@ Item { rotation: store.centerConsole.rotation + // Default binding, acts like "constrainHeight" to avoid zero sizes when switching + // between root states through default state + width: root.store.centerConsole.availableWidth + height: Math.round(root.width / Config.centerConsoleAspectRatio) + // If the Window aspect ratio differs from Config.centerConsoleAspectRatio the Center Console item will be // letterboxed so that a Config.centerConsoleAspectRatio is preserved. states: [ |