Add support for modals with forced scrollbars (`overflow-y: scroll`)
Created by: pavelhoral
Scrollbar showing/hiding and the related "layout jumping" is usually percieved pretty negatively by users. This is less issue on static web pages, however with dynamic pages or single-page web applications (e.g. AngularJS based) it becames very uncomfortable and distracting.
To workaround this a standard solution is to force browsers to always show vertical scrollbar by setting overflow-y: scroll
on <body>
element. However this is incompatible with Bootstrap's modal dialog as it checks for scrollbar presence only by checking that the content height is bigger than the viewport.
I would like Bootstrap to support forced scrollbars (i.e. change the detection when the scrollbars are shown).
JS-Bin to demonstrate the current state of things: http://jsbin.com/johobubafa/1/