Browse Source

Fix ScrollableTextArea

CURA-6447
Lipu Fei 6 years ago
parent
commit
4bd3088b58
1 changed files with 8 additions and 6 deletions
  1. 8 6
      resources/qml/Widgets/ScrollableTextArea.qml

+ 8 - 6
resources/qml/Widgets/ScrollableTextArea.qml

@@ -15,6 +15,14 @@ ScrollView
 {
     property alias textArea: _textArea
 
+    clip: true
+
+    background: Rectangle  // Border
+    {
+        border.color: UM.Theme.getColor("lining")
+        border.width: UM.Theme.getSize("default_lining").width
+    }
+
     TextArea
     {
         id: _textArea
@@ -22,11 +30,5 @@ ScrollView
         textFormat: TextEdit.PlainText
         renderType: Text.NativeRendering
         selectByMouse: true
-
-        background: Rectangle  // Border
-        {
-            border.color: UM.Theme.getColor("lining")
-            border.width: UM.Theme.getSize("default_lining").width
-        }
     }
 }