Commit a2a4325b by Torkel Ödegaard

Merge branch 'develop-newgrid' of github.com:grafana/grafana into develop-newgrid

parents 77b42220 95f67ed7
......@@ -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;
......
......@@ -12,7 +12,7 @@
"title": "Home Dashboard",
"collapse": false,
"editable": true,
"height": "25px",
"height": 150,
"panels": [
{
"content": "<div class=\"text-center dashboard-header\">\n <span>Home Dashboard</span>\n</div>",
......
......@@ -24,7 +24,6 @@
right: 5px;
bottom: 0;
width: auto;
z-index: 0 !important;
text-align: center;
}
......
......@@ -33,10 +33,6 @@ div.flot-text {
}
}
.panel-margin {
margin: 0 0.4rem 0.8rem 0.4rem;
}
.panel-container {
background-color: $panel-bg;
position: relative;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment