Adjust scroll position on container after triggering the 'rendered' event
Prevent behaviors from altering the current scroll-position on page reload when refreshing or changing the focus. fixes #7269
This commit is contained in:
parent
c67e7c3ef0
commit
6124f984ee
|
@ -723,9 +723,6 @@
|
|||
}
|
||||
this.icinga.ui.assignUniqueContainerIds();
|
||||
|
||||
if (scrollPos !== false) {
|
||||
$container.scrollTop(scrollPos);
|
||||
}
|
||||
if (origFocus) {
|
||||
$(origFocus).focus();
|
||||
}
|
||||
|
@ -733,6 +730,9 @@
|
|||
// TODO: this.icinga.events.refreshContainer(container);
|
||||
$container.trigger('rendered');
|
||||
|
||||
if (scrollPos !== false) {
|
||||
$container.scrollTop(scrollPos);
|
||||
}
|
||||
var icinga = this.icinga;
|
||||
//icinga.events.applyHandlers($container);
|
||||
icinga.ui.initializeControls($container);
|
||||
|
|
Loading…
Reference in New Issue