aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/imagine
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2018-05-02 14:12:42 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2018-05-02 13:43:26 +0000
commit5ef9d74f8329786505c9db615c40e39d3942e935 (patch)
treef66507a2c339fb59768b848290006a0934b894c3 /src/imports/controls/imagine
parent6858d4e9873644c255b19d251e5522c7cf4b7160 (diff)
TextArea: add support for background insets
Same as 5adce042 for QQuickControl. [ChangeLog][Controls][TextArea] Added topInset, bottomInset, leftInset, and rightInset properties to control the geometry of the background similarly to how paddings control the geometry of the contentItem. Change-Id: I1e1b3a79a9f477ec7b64ec4c6cc8021bbf48adc0 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/imports/controls/imagine')
-rw-r--r--src/imports/controls/imagine/TextArea.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/controls/imagine/TextArea.qml b/src/imports/controls/imagine/TextArea.qml
index c7f54f61..dbbc7c35 100644
--- a/src/imports/controls/imagine/TextArea.qml
+++ b/src/imports/controls/imagine/TextArea.qml
@@ -45,10 +45,10 @@ T.TextArea {
id: control
implicitWidth: Math.max(contentWidth + leftPadding + rightPadding,
- implicitBackgroundWidth,
+ implicitBackgroundWidth + leftInset + rightInset,
placeholder.implicitWidth + leftPadding + rightPadding)
implicitHeight: Math.max(contentHeight + topPadding + bottomPadding,
- implicitBackgroundHeight,
+ implicitBackgroundHeight + topInset + bottomInset,
placeholder.implicitHeight + topPadding + bottomPadding)
topPadding: background ? background.topPadding : 0