From 44332aae750c46cda08a194794a7549c3d19814d Mon Sep 17 00:00:00 2001 From: Daniel d'Andrada Date: Thu, 22 Mar 2018 16:35:09 +0100 Subject: [controls] Specify an implicit size for ScalableBorderImage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise it would shrivel if you didn't specify both width and height when using it. Change-Id: If1d54a0d412a084540a5244f71b717ef01af212b Reviewed-by: Lukáš Tinkl --- imports/shared/controls/ScalableBorderImage.qml | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3