LinearSpectrum: minimum 1px height
This commit is contained in:
parent
fd890f4293
commit
9298f37b38
1 changed files with 2 additions and 2 deletions
|
|
@ -21,7 +21,7 @@ Item {
|
||||||
antialiasing: true
|
antialiasing: true
|
||||||
|
|
||||||
width: xScale * 0.5
|
width: xScale * 0.5
|
||||||
height: root.height * amp
|
height: Math.max(1, root.height * amp)
|
||||||
x: index * xScale
|
x: index * xScale
|
||||||
y: root.height - height
|
y: root.height - height
|
||||||
}
|
}
|
||||||
|
|
@ -38,7 +38,7 @@ Item {
|
||||||
antialiasing: true
|
antialiasing: true
|
||||||
|
|
||||||
width: xScale * 0.5
|
width: xScale * 0.5
|
||||||
height: root.height * amp
|
height: Math.max(1, root.height * amp)
|
||||||
x: (values.length + index) * xScale
|
x: (values.length + index) * xScale
|
||||||
y: root.height - height
|
y: root.height - height
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue