aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/imagine/Popup.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/controls/imagine/Popup.qml')
-rw-r--r--src/imports/controls/imagine/Popup.qml9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/imports/controls/imagine/Popup.qml b/src/imports/controls/imagine/Popup.qml
index ea6ddfa4..12b8300b 100644
--- a/src/imports/controls/imagine/Popup.qml
+++ b/src/imports/controls/imagine/Popup.qml
@@ -52,11 +52,12 @@ T.Popup {
rightPadding: background ? background.rightPadding : undefined
bottomPadding: background ? background.bottomPadding : undefined
- background: NinePatchImage {
- x: -leftInset; y: -topInset
- width: control.width + leftInset + rightInset
- height: control.height + topInset + bottomInset
+ topInset: background ? -background.topInset || 0 : 0
+ leftInset: background ? -background.leftInset || 0 : 0
+ rightInset: background ? -background.rightInset || 0 : 0
+ bottomInset: background ? -background.bottomInset || 0 : 0
+ background: NinePatchImage {
source: Imagine.url + "popup-background"
NinePatchImageSelector on source {
states: [