aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/imagine/TextArea.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/controls/imagine/TextArea.qml')
-rw-r--r--src/imports/controls/imagine/TextArea.qml9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/imports/controls/imagine/TextArea.qml b/src/imports/controls/imagine/TextArea.qml
index dbbc7c35..c50b2f18 100644
--- a/src/imports/controls/imagine/TextArea.qml
+++ b/src/imports/controls/imagine/TextArea.qml
@@ -56,6 +56,11 @@ T.TextArea {
rightPadding: background ? background.rightPadding : 0
bottomPadding: background ? background.bottomPadding : 0
+ topInset: background ? -background.topInset || 0 : 0
+ leftInset: background ? -background.leftInset || 0 : 0
+ rightInset: background ? -background.rightInset || 0 : 0
+ bottomInset: background ? -background.bottomInset || 0 : 0
+
color: control.palette.text
selectionColor: control.palette.highlight
selectedTextColor: control.palette.highlightedText
@@ -78,10 +83,6 @@ T.TextArea {
}
background: NinePatchImage {
- x: -leftInset; y: -topInset
- width: control.width + leftInset + rightInset
- height: control.height + topInset + bottomInset
-
source: Imagine.url + "textarea-background"
NinePatchImageSelector on source {
states: [