Pio
Pio

Reputation: 4062

Why do I get a slider with modal?

I am getting a slider next to my modal like this:

this

My code for the modal is:

 div#myModal.modal.fade.col-md-8.col-md-offset-2(tabindex="-1", role="dialog", aria-labelledby="myModalLabel" aria-hidden="true")
    div.modal-content
        div.modal-body
            p Modal body content.
        div.modal-footer
            button.btn.btn-default(type="button", data-dismiss="modal") Close

And I invoke the modal from javascript:

  $('#joinBtn').click(function(event) {
        $('#myModal').modal({
        show: true
    })
});

Upvotes: 0

Views: 74

Answers (1)

Bryce Easley
Bryce Easley

Reputation: 4841

You should be able to add

 div#myModal.modal.fade.col-md-8.col-md-offset-2(tabindex="-1", role="dialog", aria-labelledby="myModalLabel" aria-hidden="true" style="overflow-y: auto;")

or in your CSS you could add:

.modal {
    overflow-y: auto;
}

Upvotes: 1

Related Questions