From 1cf2f767a25520244555c208b676c428f1c34441 Mon Sep 17 00:00:00 2001 From: nmartini Date: Thu, 27 Feb 2020 14:29:36 +0100 Subject: [PATCH] Make sure that class container has its container --- public/js/icinga/loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/icinga/loader.js b/public/js/icinga/loader.js index b8d40b0fb..34c14cd38 100644 --- a/public/js/icinga/loader.js +++ b/public/js/icinga/loader.js @@ -1079,7 +1079,7 @@ var scrollTarget = $container; if (typeof containerId !== 'undefined') { if (autorefresh || autoSubmit) { - if ($container.css('display') === 'flex') { + if ($container.css('display') === 'flex' && $container.is('.container')) { var $scrollableContent = $container.children('.content'); scrollPos = $scrollableContent.scrollTop(); scrollTarget = _this.icinga.utils.getCSSPath($scrollableContent);