fix: When in tv-mode, autofitpanel should not take space from the navbar #15650

(cherry picked from commit cc40a515be)
This commit is contained in:
Johannes Schill
2019-03-06 14:10:12 +01:00
committed by Torkel Ödegaard
parent 967089d179
commit 18ac0824bd
@@ -887,8 +887,8 @@ export class DashboardModel {
}
// add back navbar height
if (kioskMode === KIOSK_MODE_TV) {
visibleHeight += 55;
if (kioskMode && kioskMode !== KIOSK_MODE_TV) {
visibleHeight += navbarHeight;
}
const visibleGridHeight = Math.floor(visibleHeight / (GRID_CELL_HEIGHT + GRID_CELL_VMARGIN));