bluerail / twitter-bootstrap-rails-confirm

Confirm dialogs using Twitter Bootstrap
https://bluerail.nl
MIT License
85 stars 34 forks source link

Why the `padding-right: 15px`? #29

Closed Ajedi32 closed 9 years ago

Ajedi32 commented 9 years ago

Quick question: Why does twitter-bootstrap-rails-confirm add an extra 15 pixels of padding to the document body when the confirmation dialog button is open? It's kind of odd to be seeing the document reflowing in the background to accommodate the new body size whenever I open a confirmation dialog...

Ajedi32 commented 9 years ago

Wait, nevermind I think I get it. That's there to prevent the document from reflowing when the scrollbar disappears due to .modal-open { overflow: hidden; }, right?

Makes sense...