From 92ed791f53c96fcf99c4908423de0b5a651e70de Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 28 Jan 2022 11:06:07 +0100 Subject: [PATCH] Simplify anchors of background rectangle Contributes to issue CURA-8686. --- resources/qml/Widgets/ScrollableTextArea.qml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/resources/qml/Widgets/ScrollableTextArea.qml b/resources/qml/Widgets/ScrollableTextArea.qml index c0801651ea..7d8f6b886d 100644 --- a/resources/qml/Widgets/ScrollableTextArea.qml +++ b/resources/qml/Widgets/ScrollableTextArea.qml @@ -26,17 +26,8 @@ Flickable background: Rectangle //Providing the background color and border. { - anchors - { - top: parent.top - topMargin: -border.width - bottom: parent.bottom - bottomMargin: -border.width - left: parent.left - leftMargin: -border.width - right: parent.right - rightMargin: -border.width - } + anchors.fill: parent + anchors.margins: -border.width color: scrollableTextAreaBase.back_color border.color: UM.Theme.getColor("thick_lining")