Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemco Burema <r.burema@ultimaker.com>2022-04-21 15:02:15 +0300
committerRemco Burema <r.burema@ultimaker.com>2022-04-21 15:02:29 +0300
commit38d62b73c5ab043f4413360cdb627f26a096fbf6 (patch)
treeb570d3ea20585183c0bbfc3a80e99e225df7cde7
parentcab56bf48ecb3a8688570643d0161a99a174eb2b (diff)
Mostly? fix scrollbars in settings-tooltips.
CURA-9112
-rw-r--r--resources/qml/PrintSetupTooltip.qml11
1 files changed, 5 insertions, 6 deletions
diff --git a/resources/qml/PrintSetupTooltip.qml b/resources/qml/PrintSetupTooltip.qml
index 29fe7d6508..5e5b1dce73 100644
--- a/resources/qml/PrintSetupTooltip.qml
+++ b/resources/qml/PrintSetupTooltip.qml
@@ -11,7 +11,7 @@ UM.PointingRectangle
id: base
property real sourceWidth: 0
width: UM.Theme.getSize("tooltip").width
- height: textScroll.height + UM.Theme.getSize("tooltip_margins").height * 2
+ height: UM.Theme.getSize("tooltip").height
color: UM.Theme.getColor("tooltip")
arrowSize: UM.Theme.getSize("default_arrow").width
@@ -81,12 +81,11 @@ UM.PointingRectangle
ScrollView
{
id: textScroll
- width: parent.width
- height: Math.min(label.height, base.parent.height)
+ width: base.width
+ height: base.height
- ScrollBar.horizontal: ScrollBar {
- active: false //Only allow vertical scrolling. We should grow vertically only, but due to how the label is positioned it allocates space in the ScrollView horizontally.
- }
+ ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
+ ScrollBar.vertical.policy: ScrollBar.AsNeeded
UM.Label
{