Make sure that class container has its container

This commit is contained in:
nmartini 2020-02-27 14:29:36 +01:00 committed by Johannes Meyer
parent 0d99509dd6
commit 1cf2f767a2
1 changed files with 1 additions and 1 deletions

View File

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