Browse Source

Improve tooltip text quality

fieldOfView 7 years ago
parent
commit
c4aae784ee
1 changed files with 2 additions and 2 deletions
  1. 2 2
      resources/qml/PrinterOutput/ExtruderBox.qml

+ 2 - 2
resources/qml/PrinterOutput/ExtruderBox.qml

@@ -52,7 +52,7 @@ Item
                     {
                         base.showTooltip(
                             base,
-                            {x: 0, y: extruderTargetTemperature.mapToItem(base, 0, -parent.height / 4).y},
+                            {x: 0, y: extruderTargetTemperature.mapToItem(base, 0, Math.floor(-parent.height / 4)).y},
                             catalog.i18nc("@tooltip", "The target temperature of the hotend. The hotend will heat up or cool down towards this temperature. If this is 0, the hotend heating is turned off.")
                         );
                     }
@@ -85,7 +85,7 @@ Item
                     {
                         base.showTooltip(
                             base,
-                            {x: 0, y: parent.mapToItem(base, 0, -parent.height / 4).y},
+                            {x: 0, y: parent.mapToItem(base, 0, Math.floor(-parent.height / 4)).y},
                             catalog.i18nc("@tooltip", "The current temperature of this extruder.")
                         );
                     }