mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
widget-sliders: safeguard Shape
This commit is contained in:
@@ -93,6 +93,7 @@ Slider {
|
||||
anchors.centerIn: parent
|
||||
width: root.trackWidth
|
||||
height: bgContainer.height
|
||||
visible: root.trackWidth > 0 && bgContainer.height > 0
|
||||
preferredRendererType: Shape.CurveRenderer
|
||||
|
||||
ShapePath {
|
||||
|
||||
@@ -41,6 +41,7 @@ Slider {
|
||||
// Background track
|
||||
Shape {
|
||||
anchors.fill: parent
|
||||
visible: bgContainer.width > 0 && bgContainer.height > 0
|
||||
preferredRendererType: Shape.CurveRenderer
|
||||
|
||||
ShapePath {
|
||||
|
||||
Reference in New Issue
Block a user