hide scrollbar when useless
not only the root scrollbar should be hidden when control.size == 1.0 but also background and contentItem as they get reparented
This commit is contained in:
parent
d3ed006a1f
commit
57c35df0bb
@ -37,6 +37,7 @@ T.ScrollBar {
|
||||
implicitWidth: scrollbarSvg.elementSize("hint-scrollbar-size").width
|
||||
implicitHeight: implicitWidth
|
||||
colorGroup: PlasmaCore.ColorScope.colorGroup
|
||||
visible: control.size < 1.0
|
||||
|
||||
prefix: control.horizontal ? "background-horizontal" : "background-vertical"
|
||||
opacity: control.hovered ? 1 : 0
|
||||
@ -52,6 +53,7 @@ T.ScrollBar {
|
||||
implicitWidth: scrollbarSvg.elementSize("hint-scrollbar-size").width
|
||||
implicitHeight: implicitWidth
|
||||
colorGroup: PlasmaCore.ColorScope.colorGroup
|
||||
visible: control.size < 1.0
|
||||
|
||||
prefix: control.hovered ? "mouseover-slider" : "slider"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user