Skip to content

Commit

Permalink
fix: When in tv-mode, autofitpanel should not take space from the nav…
Browse files Browse the repository at this point in the history
…bar #15650
  • Loading branch information
jschill committed Mar 4, 2019
1 parent b4df0e7 commit cc40a51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/app/features/dashboard/state/DashboardModel.ts
Expand Up @@ -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));
Expand Down

0 comments on commit cc40a51

Please sign in to comment.