diff --git a/plugins/LayerView/LayerView.qml b/plugins/LayerView/LayerView.qml index ea55d8dbf7..4779d74720 100644 --- a/plugins/LayerView/LayerView.qml +++ b/plugins/LayerView/LayerView.qml @@ -65,8 +65,11 @@ Item anchors.leftMargin: UM.Theme.getSize("default_margin").width / 2; anchors.verticalCenter: parent.verticalCenter; - width: Math.max(UM.Theme.getSize("line").width * maxValue.length + 1, 20); - + width: Math.max(UM.Theme.getSize("line").width * maxValue.length + 2, 20); + // Ensure that the cursor is at the first position. On some systems the text isnt fully visible + // Seems to have to do something with different dpi densities that QML doesn't quite handle. + // Another option would be to increase the size even further, but that gives pretty ugly results. + onTextChanged: cursorPosition = 0 style: TextFieldStyle { textColor: UM.Theme.getColor("setting_control_text");