Merge pull request #19653 from ping-yee/18077-body-padding
Fixes #18077- update body padding dynamically using MutationObserver
This commit is contained in:
commit
6e86f2ee36
@ -1097,6 +1097,17 @@ Navigation.ResizeHandler = function () {
|
||||
$('#floating_menubar').outerHeight(true)
|
||||
);
|
||||
}, 2);
|
||||
|
||||
if (window.MutationObserver) {
|
||||
var target = document.getElementById('floating_menubar');
|
||||
if (target) {
|
||||
var observer = new MutationObserver(function () {
|
||||
$('body').css('padding-top', $('#floating_menubar').outerHeight(true));
|
||||
});
|
||||
observer.observe(target, { attributes: true, childList: true, subtree: true });
|
||||
}
|
||||
}
|
||||
|
||||
$('#pma_console')
|
||||
.css('margin-' + this.left, (pos + resizerWidth) + 'px');
|
||||
$resizer.css(this.left, pos + 'px');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user