mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06:00
Mostly? fix scrollbars in settings-tooltips.
CURA-9112
This commit is contained in:
parent
cab56bf48e
commit
38d62b73c5
1 changed files with 5 additions and 6 deletions
|
@ -11,7 +11,7 @@ UM.PointingRectangle
|
||||||
id: base
|
id: base
|
||||||
property real sourceWidth: 0
|
property real sourceWidth: 0
|
||||||
width: UM.Theme.getSize("tooltip").width
|
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")
|
color: UM.Theme.getColor("tooltip")
|
||||||
|
|
||||||
arrowSize: UM.Theme.getSize("default_arrow").width
|
arrowSize: UM.Theme.getSize("default_arrow").width
|
||||||
|
@ -81,12 +81,11 @@ UM.PointingRectangle
|
||||||
ScrollView
|
ScrollView
|
||||||
{
|
{
|
||||||
id: textScroll
|
id: textScroll
|
||||||
width: parent.width
|
width: base.width
|
||||||
height: Math.min(label.height, base.parent.height)
|
height: base.height
|
||||||
|
|
||||||
ScrollBar.horizontal: ScrollBar {
|
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
|
||||||
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.vertical.policy: ScrollBar.AsNeeded
|
||||||
}
|
|
||||||
|
|
||||||
UM.Label
|
UM.Label
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue