diff --git a/public/app/features/dashboard/model.ts b/public/app/features/dashboard/model.ts index 87b41a1db09..a999b5d0dcd 100644 --- a/public/app/features/dashboard/model.ts +++ b/public/app/features/dashboard/model.ts @@ -656,14 +656,19 @@ export class DashboardModel { height = Math.ceil(height / CELL_HEIGHT); for (let panel of row.panels) { + // should wrap to next row? + if (xPos + panel.span >= 12) { + yPos += height; + } + panel.x = xPos; panel.y = yPos; panel.width = panel.span; panel.height = height; - xPos += panel.width; - this.panels.push(panel); + + xPos += panel.width; } yPos += height; diff --git a/public/dashboards/home.json b/public/dashboards/home.json index e2eb67c5cb8..c0c7694c76d 100644 --- a/public/dashboards/home.json +++ b/public/dashboards/home.json @@ -12,7 +12,7 @@ "title": "Home Dashboard", "collapse": false, "editable": true, - "height": "25px", + "height": 150, "panels": [ { "content": "