aboutsummaryrefslogtreecommitdiffstats
path: root/apps/com.pelagicore.phone/Main.qml
diff options
context:
space:
mode:
authorEgor Nemtsev <enemtsev@luxoft.com>2019-02-12 10:08:04 +0300
committerEgor Nemtsev <enemtsev@luxoft.com>2019-02-14 07:50:45 +0000
commit389be411c2464017812df01c6c3a076b809c95ed (patch)
tree19a463418f0ba3bee18d482390beda0f897d3425 /apps/com.pelagicore.phone/Main.qml
parent6b8fd1308632be04d2d4348de08a616bfa4a4a4c (diff)
[controls] fix ScalableBorderImage wrong sizes made app crash
When any border size exceeds or equals to source image size application crashes Change-Id: I311abdc4b4c3fe200ca191db76161473d5a0346c Reviewed-by: Bramastyo Harimukti Santoso <bramastyo.harimukti.santoso@pelagicore.com>
Diffstat (limited to 'apps/com.pelagicore.phone/Main.qml')
-rw-r--r--apps/com.pelagicore.phone/Main.qml12
1 files changed, 8 insertions, 4 deletions
diff --git a/apps/com.pelagicore.phone/Main.qml b/apps/com.pelagicore.phone/Main.qml
index dcaefb95..003ae134 100644
--- a/apps/com.pelagicore.phone/Main.qml
+++ b/apps/com.pelagicore.phone/Main.qml
@@ -68,10 +68,14 @@ ApplicationCCWindow {
width: root.exposedRect.width
height: Math.max(Sizes.dp(sourceSize.height), Sizes.dp(660 - 224) + root.exposedRect.y)
- border.bottom: 0
- border.top: height - Sizes.dp(1)
- border.left: 0
- border.right: 0
+ border{
+ //don't change these values without knowing the exact size of source image
+ //QTBUG-73768 if border exceeds source image size, app crashes, avoid Sizes.dp here
+ bottom: 0
+ top: sourceSize.height - 1
+ left: 0
+ right: 0
+ }
opacity: (root.neptuneState === "Maximized") ? 1.0 : 0.0
Behavior on opacity { DefaultNumberAnimation {} }