mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Replace floor with round
This commit is contained in:
parent
9e4748e2aa
commit
338a37abc8
@ -82,8 +82,8 @@ export class DashboardCtrl implements PanelContainer {
|
||||
this.dashboard.panels.forEach((panel, i) => {
|
||||
console.log(i);
|
||||
console.log(panel.gridPos);
|
||||
panel.gridPos.y = Math.floor(panel.gridPos.y / scaleFactor) || 1;
|
||||
panel.gridPos.h = Math.floor(panel.gridPos.h / scaleFactor) || 1;
|
||||
panel.gridPos.y = Math.round(panel.gridPos.y / scaleFactor) || 1;
|
||||
panel.gridPos.h = Math.round(panel.gridPos.h / scaleFactor) || 1;
|
||||
|
||||
console.log(panel.gridPos);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user