From c7fde54f3d69a6f0af22369698c1a469f42c02fa Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Wed, 30 Aug 2023 16:42:59 +0200 Subject: [PATCH] Fix GCode text bug when resizing CURA-10896 --- resources/qml/MachineSettings/GcodeTextArea.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/qml/MachineSettings/GcodeTextArea.qml b/resources/qml/MachineSettings/GcodeTextArea.qml index d4bc58cdc4..6458f0adcb 100644 --- a/resources/qml/MachineSettings/GcodeTextArea.qml +++ b/resources/qml/MachineSettings/GcodeTextArea.qml @@ -55,6 +55,7 @@ UM.TooltipArea } ScrollBar.vertical: UM.ScrollBar {} + clip: true TextArea.flickable: TextArea { @@ -70,6 +71,7 @@ UM.TooltipArea selectionColor: UM.Theme.getColor("text_selection") selectedTextColor: UM.Theme.getColor("text") wrapMode: TextEdit.NoWrap + padding: -border.width //Take care of the border width to fit the text. onActiveFocusChanged: { @@ -82,7 +84,6 @@ UM.TooltipArea background: Rectangle { anchors.fill: parent - anchors.margins: -border.width //Wrap the border around the parent. color: UM.Theme.getColor("detail_background") border.color: