From 3ed7d60adbe8b7f47ca05af2370d692334d93963 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Mon, 4 Apr 2016 14:42:42 +0200 Subject: [PATCH] Increased size of the label for layerview a bit more. CURA-1273 --- plugins/LayerView/LayerView.qml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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");