From 3c4241b05f4dce04244b0e1f35788f9c47a2b6e8 Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Tue, 19 Jan 2016 08:01:30 +0100 Subject: [PATCH] fix that scrollbars work with modals --- app/assets/javascripts/app/lib/bootstrap/modal.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/javascripts/app/lib/bootstrap/modal.js b/app/assets/javascripts/app/lib/bootstrap/modal.js index 6a6468667..241744883 100644 --- a/app/assets/javascripts/app/lib/bootstrap/modal.js +++ b/app/assets/javascripts/app/lib/bootstrap/modal.js @@ -239,6 +239,10 @@ .css('width', this.$body.width()) .css('height', 0) .css('height', this.$element[0].scrollHeight) + + if(this.scrollbarWidth){ + this.$backdrop.css('width', this.$body.width() - this.scrollbarWidth) + } } Modal.prototype.adjustDialog = function () {