diff options
Diffstat (limited to 'src/imports/nativestyle/controls/DefaultTextArea.qml')
-rw-r--r-- | src/imports/nativestyle/controls/DefaultTextArea.qml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/imports/nativestyle/controls/DefaultTextArea.qml b/src/imports/nativestyle/controls/DefaultTextArea.qml index bb948e58..29277414 100644 --- a/src/imports/nativestyle/controls/DefaultTextArea.qml +++ b/src/imports/nativestyle/controls/DefaultTextArea.qml @@ -45,8 +45,12 @@ T.TextArea { readonly property bool nativeBackground: background instanceof NativeStyle.StyleItem - implicitWidth: Math.max(96, background.implicitWidth + leftPadding + rightPadding + leftInset + rightInset) - implicitHeight: background.implicitHeight + topPadding + bottomPadding + topInset + bottomInset + implicitWidth: Math.max(contentWidth + leftPadding + rightPadding, + implicitBackgroundWidth + leftInset + rightInset, + placeholder.implicitWidth + leftPadding + rightPadding) + implicitHeight: Math.max(contentHeight + topPadding + bottomPadding, + implicitBackgroundHeight + topInset + bottomInset, + placeholder.implicitHeight + topPadding + bottomPadding) font.pixelSize: nativeBackground ? background.styleFont(control).pixelSize : undefined |