diff options
author | Jaime van Kessel <nallath@gmail.com> | 2019-11-11 18:10:26 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2019-11-11 18:10:26 +0300 |
commit | 7e3905059d06b051c6d4d3aab7ce4fb5ef26fce3 (patch) | |
tree | 74175fb1104fd34390d69d32b9a19d6d5578adca /plugins/SimulationView | |
parent | 4613b62120e40cbe0883dc53e50f096b9306124c (diff) |
Let the simulation slider label scale on actual font size
CURA-6854
Diffstat (limited to 'plugins/SimulationView')
-rw-r--r-- | plugins/SimulationView/SimulationSliderLabel.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/SimulationView/SimulationSliderLabel.qml b/plugins/SimulationView/SimulationSliderLabel.qml index 41eea7aa9e..7474c287c2 100644 --- a/plugins/SimulationView/SimulationSliderLabel.qml +++ b/plugins/SimulationView/SimulationSliderLabel.qml @@ -49,7 +49,7 @@ UM.PointingRectangle { alignWhenCentered: false } - width: ((maximumValue + 1).toString().length + 1) * 8 * screenScaleFactor + width: ((maximumValue + 1).toString().length + 1) * UM.Theme.getFont("default").pixelSize text: sliderLabelRoot.value + startFrom // the current handle value, add 1 because layers is an array horizontalAlignment: TextInput.AlignHCenter |