diff options
author | Nino van Hooff <ninovanhooff@gmail.com> | 2019-11-12 16:55:00 +0300 |
---|---|---|
committer | Nino van Hooff <ninovanhooff@gmail.com> | 2019-11-12 16:55:00 +0300 |
commit | 27b4e9a063e07a1b435aa8921d9dbfadc196f9b5 (patch) | |
tree | eadc813f907ea1198872abe1fb818be0cd2279fa /plugins | |
parent | f4b9c0fdd47b70c2f70031a59dd6cb880bd58959 (diff) |
Refactor: simplify SimulationSliderLabel width
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/SimulationView/SimulationSliderLabel.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/SimulationView/SimulationSliderLabel.qml b/plugins/SimulationView/SimulationSliderLabel.qml index 5245c5e92a..9b29ae1d02 100644 --- a/plugins/SimulationView/SimulationSliderLabel.qml +++ b/plugins/SimulationView/SimulationSliderLabel.qml @@ -55,6 +55,7 @@ UM.PointingRectangle { alignWhenCentered: false } + width: maxValueMetrics.width + UM.Theme.getSize("default_margin").width text: sliderLabelRoot.value + startFrom // the current handle value, add 1 because layers is an array horizontalAlignment: TextInput.AlignHCenter @@ -66,8 +67,7 @@ UM.PointingRectangle { textColor: UM.Theme.getColor("text") font: UM.Theme.getFont("default") renderType: Text.NativeRendering - // valueLabel width - background: Item { implicitWidth: maxValueMetrics.width + UM.Theme.getSize("default_margin").width } + background: Item { } } onEditingFinished: { |