瀏覽代碼

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

Johannes Schill 6 年之前
父節點
當前提交
cc40a515be
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      public/app/features/dashboard/state/DashboardModel.ts

+ 2 - 2
public/app/features/dashboard/state/DashboardModel.ts

@@ -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));