From 1b66775d4bcddefb0c97b60b537c5e65290d8532 Mon Sep 17 00:00:00 2001 From: REJack Date: Wed, 10 Feb 2021 08:20:01 +0100 Subject: [PATCH] fix iframe mode fullscreen height calculation --- build/js/IFrame.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/js/IFrame.js b/build/js/IFrame.js index c2116a52d..15e68699a 100644 --- a/build/js/IFrame.js +++ b/build/js/IFrame.js @@ -300,9 +300,9 @@ class IFrame { _fixHeight(tabEmpty = false) { if ($('body').hasClass(CLASS_NAME_FULLSCREEN_MODE)) { const windowHeight = $(window).height() - $(`${SELECTOR_TAB_EMPTY}, ${SELECTOR_TAB_LOADING}`).height(windowHeight) + const navbarHeight = $(SELECTOR_TAB_NAV).outerHeight() + $(`${SELECTOR_TAB_EMPTY}, ${SELECTOR_TAB_LOADING}, ${SELECTOR_CONTENT_IFRAME}`).height(windowHeight - navbarHeight) $(SELECTOR_CONTENT_WRAPPER).height(windowHeight) - $(SELECTOR_CONTENT_IFRAME).height(windowHeight) } else { const contentWrapperHeight = parseFloat($(SELECTOR_CONTENT_WRAPPER).css('height')) const navbarHeight = $(SELECTOR_TAB_NAV).outerHeight()