Fix LayerView cursor issue.

CURA-1381
This commit is contained in:
Jack Ha 2016-07-07 16:55:56 +02:00
parent 3e869048fd
commit 6374eee7b4

View file

@ -69,7 +69,7 @@ Item
// Ensure that the cursor is at the first position. On some systems the text isnt fully visible // 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. // 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. // Another option would be to increase the size even further, but that gives pretty ugly results.
onTextChanged: cursorPosition = 0 onEditingFinished: cursorPosition = 0
style: TextFieldStyle style: TextFieldStyle
{ {
textColor: UM.Theme.getColor("setting_control_text"); textColor: UM.Theme.getColor("setting_control_text");