Commit 9e4748e2 by Tobias Skarhed Committed by Torkel Ödegaard

Go with just single margin compensation

parent 78b3dc40
......@@ -72,7 +72,7 @@ export class DashboardCtrl implements PanelContainer {
);
console.log('maxRows: ' + maxRows);
//Consider navbar and submenu controls, padding and margin
let availableHeight = window.innerHeight - 80 - 2 * GRID_CELL_VMARGIN;
let availableHeight = window.innerHeight - 80;
let availableRows = Math.floor(availableHeight / (GRID_CELL_HEIGHT + GRID_CELL_VMARGIN));
console.log('availableRows: ' + availableRows);
......
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