when my modal popup window opens, it adds a vertical scrollbar to the right of the browser window. How do i disable this? I think this is enabled when the modal window has a very large height value where it needs to scroll. i want to disable this as my form height does not exceed the window height.
In your css add :
body {
overflow-y:hidden;
}
I have the same problem with bootstrap 3.0.0. It seems that .modal
class has overflow-y: scroll
rule which results in scrollbar always visible.
So, you can amend this either locally:
<div class="modal" ... style="overflow-y: auto;">
...
</div>
or globally:
<style>
.modal {
overflow-y: auto;
}
</style>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With