Skip to content

Commit af2d083

Browse files
committed
Resolved undue rectangle issue at the spectrum chart
1 parent 126ac68 commit af2d083

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/graph_spectrum_plot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ GraphSpectrumPlot._drawFrequencyGraph = function (canvasCtx) {
316316
}
317317

318318
//Legend draw
319-
if (this._isFullScreen) {
319+
if (this._isFullScreen && spectrumCount > 0) {
320320
const legendPosX = 0.84 * WIDTH,
321321
legendPosY = 0.6 * HEIGHT,
322322
rowHeight = 16,

0 commit comments

Comments
 (0)