Dashboard: Fix queries for panels with non-integer widths (#42420) (#42423)

* dashboard: fix non-integer panel widths

* switched to better supported function

(cherry picked from commit 8508ad79b2)

Co-authored-by: Gábor Farkas <gabor.farkas@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2021-11-29 12:06:00 +01:00
committed by GitHub
co-authored by Gábor Farkas
parent 8ad3ab4082
commit a0cfdec52e
@@ -313,7 +313,7 @@ export class PanelModel implements DataConfigSource, IPanelModel {
timezone: dashboardTimezone,
timeRange: timeData.timeRange,
timeInfo: timeData.timeInfo,
maxDataPoints: this.maxDataPoints || width,
maxDataPoints: this.maxDataPoints || Math.floor(width),
minInterval: this.interval,
scopedVars: this.scopedVars,
cacheTimeout: this.cacheTimeout,