I know this is an old topic, but it might help someone else.
I managed to scroll the body, fixing the position of the modal dialog element. And since I will never know the exact height of the browser window, I took the information that I was sure about, the height of the header and footer. Then I was able to make the upper and lower fields of the element of the modal body correspond to these heights. Then this led to what I was looking for. I threw the violin together to show my work.
also, if you want the full-screen dialog just to not comment on the width: auto; inside the .modal-dialog.full-screen section.
https://jsfiddle.net/lot224/znrktLej/
And here is the css that I used to change the bootstrap dialog.
.modal-dialog.full-screen { position:fixed; //width:auto; // uncomment to make the width based on the left/right attributes. margin:auto; left:0px; right:0px; top:0px; bottom:0px; } .modal-dialog.full-screen .modal-content { position:absolute; left:10px; right:10px; top:10px; bottom:10px; } .modal-dialog.full-screen .modal-content .modal-header { height:55px; // adjust as needed. } .modal-dialog.full-screen .modal-content .modal-body { overflow-y: auto; position: absolute; top: 0; bottom: 0; left:0; right:0; margin-top: 55px; // .modal-header height margin-bottom: 80px; // .modal-footer height } .modal-dialog.full-screen .modal-content .modal-footer { height:80px; // adjust as needed. position:absolute; bottom:0; left:0; right:0; }
Bogus Hawtsauce Oct 21 '16 at 12:40 2016-10-21 12:40
source share