fix that scrollbars work with modals

This commit is contained in:
Felix Niklas 2016-01-19 08:01:30 +01:00
parent afe46d3570
commit 3c4241b05f

View file

@ -239,6 +239,10 @@
.css('width', this.$body.width()) .css('width', this.$body.width())
.css('height', 0) .css('height', 0)
.css('height', this.$element[0].scrollHeight) .css('height', this.$element[0].scrollHeight)
if(this.scrollbarWidth){
this.$backdrop.css('width', this.$body.width() - this.scrollbarWidth)
}
} }
Modal.prototype.adjustDialog = function () { Modal.prototype.adjustDialog = function () {