Привет. При открытии модалки смещался хедер, нашел фикс,
var fixedCls = '.minimized-header,.b-filter--floating';
var oldSSB = $.fn.modal.Constructor.prototype.setScrollbar;
$.fn.modal.Constructor.prototype.setScrollbar = function () {
oldSSB.apply(this);
if (this.bodyIsOverflowing && this.scrollbarWidth)
$(fixedCls).css('padding-right', this.scrollbarWidth);
}
var oldRSB = $.fn.modal.Constructor.prototype.resetScrollbar;
$.fn.modal.Constructor.prototype.resetScrollbar = function () {
oldRSB.apply(this);
$(fixedCls).css('padding-right', '');
}
Но при открытии в модальном окне нового модального окна хедер все равно дергается. Почему так?