mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
repeat row: fix panels placement bug (#10932)
This commit is contained in:
committed by
Torkel Ödegaard
parent
75077e634e
commit
2c5f3fbc5b
@@ -500,11 +500,12 @@ export class DashboardModel {
|
||||
if (!rowPanel.panels || rowPanel.panels.length === 0) {
|
||||
return 0;
|
||||
}
|
||||
const rowYPos = rowPanel.gridPos.y;
|
||||
const positions = _.map(rowPanel.panels, 'gridPos');
|
||||
const maxPos = _.maxBy(positions, pos => {
|
||||
return pos.y + pos.h;
|
||||
});
|
||||
return maxPos.h + 1;
|
||||
return maxPos.y + maxPos.h - rowYPos;
|
||||
}
|
||||
|
||||
removePanel(panel: PanelModel) {
|
||||
|
||||
Reference in New Issue
Block a user