Make sure that class container has its container
This commit is contained in:
parent
0d99509dd6
commit
1cf2f767a2
|
@ -1079,7 +1079,7 @@
|
||||||
var scrollTarget = $container;
|
var scrollTarget = $container;
|
||||||
if (typeof containerId !== 'undefined') {
|
if (typeof containerId !== 'undefined') {
|
||||||
if (autorefresh || autoSubmit) {
|
if (autorefresh || autoSubmit) {
|
||||||
if ($container.css('display') === 'flex') {
|
if ($container.css('display') === 'flex' && $container.is('.container')) {
|
||||||
var $scrollableContent = $container.children('.content');
|
var $scrollableContent = $container.children('.content');
|
||||||
scrollPos = $scrollableContent.scrollTop();
|
scrollPos = $scrollableContent.scrollTop();
|
||||||
scrollTarget = _this.icinga.utils.getCSSPath($scrollableContent);
|
scrollTarget = _this.icinga.utils.getCSSPath($scrollableContent);
|
||||||
|
|
Loading…
Reference in New Issue