aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel d'Andrada <daniel.dandrada@luxoft.com>2018-03-22 16:35:09 +0100
committerLukáš Tinkl <ltinkl@luxoft.com>2018-03-23 12:51:10 +0000
commit44332aae750c46cda08a194794a7549c3d19814d (patch)
tree0aa0c004c9e68d27c7abf23a282c3aabff5995f4
parent33d3be5dd563707a73b3219791e279a2cdc1077c (diff)
[controls] Specify an implicit size for ScalableBorderImage
Otherwise it would shrivel if you didn't specify both width and height when using it. Change-Id: If1d54a0d412a084540a5244f71b717ef01af212b Reviewed-by: Lukáš Tinkl <ltinkl@luxoft.com>
-rw-r--r--imports/shared/controls/ScalableBorderImage.qml3
1 files changed, 3 insertions, 0 deletions
diff --git a/imports/shared/controls/ScalableBorderImage.qml b/imports/shared/controls/ScalableBorderImage.qml
index 758ff81e..a997e1a3 100644
--- a/imports/shared/controls/ScalableBorderImage.qml
+++ b/imports/shared/controls/ScalableBorderImage.qml
@@ -41,6 +41,9 @@ import com.pelagicore.styles.neptune 3.0
Item {
id: root
+ implicitWidth: NeptuneStyle.dp(borderImage.sourceSize.width)
+ implicitHeight: NeptuneStyle.dp(borderImage.sourceSize.height)
+
property alias asynchronous: borderImage.asynchronous
property alias border: borderImage.border
property alias cache: borderImage.cache