Skip to content

Commit

Permalink
Fix GCode text bug when resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
wawanbreton committed Aug 30, 2023
1 parent 742e113 commit c7fde54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources/qml/MachineSettings/GcodeTextArea.qml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ UM.TooltipArea
}

ScrollBar.vertical: UM.ScrollBar {}
clip: true

TextArea.flickable: TextArea
{
Expand All @@ -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:
{
Expand All @@ -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:
Expand Down

0 comments on commit c7fde54

Please sign in to comment.