diff --git a/components/TextArea.qml b/components/TextArea.qml index ffdfa0daa4e19babd4c8f6320f09adad3dff6da9..cd0f2c062d3854c6b817d6723008c4ae2bbc1cb1 100644 --- a/components/TextArea.qml +++ b/components/TextArea.qml @@ -53,7 +53,7 @@ ScrollArea { KeyNavigation.tab: area.tabChangesFocus ? area.KeyNavigation.tab : null KeyNavigation.backtab: area.tabChangesFocus ? area.KeyNavigation.backtab : null - onPaintedSizeChanged: { + onContentSizeChanged: { area.contentWidth = paintedWidth + (2 * documentMargins) }