modal window does not scroll

3

I am using bootstrap to make modal windows but when loaded a lot of content can not be downloaded with the scroll to see the other information because the scroll is hidden automatically when I open my modal, that is, it remains static, I use the code to the modal windows of the bootstrap page

        <div class="modal fade " id="modalOpcionessii" tabindex="-1" role="dialog" >
            <div class="modal-dialog"  role="document">
                <div class="modal-content">
                    <div class="modal-header">
                        <h5 class="modal-title">Reporte de renovaciones</h5>
                    </div>
                    <div class="modal-body">

                        <div class="alert alert-success"><i class="glyphicon glyphicon-asterisk"></i> Propuestas</div>
                        <input type="hidden" id="valor_" />
                        <input type="hidden" id="valorboton_" />
                        <!-- EN EL DIV "muestraResultado" MUESTRO CONTENIDO DE TEXTO -->
                        <div id="muestraResultado"></div>
                    </div>

                    <div class="modal-footer">
                        <button type="button"  class="btn btn-primary" data-toggle="modal" data-target="#SiRenueva" data-whatever="si">Si </button>
                        <button type="button"  class="btn btn-primary" data-toggle="modal" data-target="#NoRenueva" data-whatever="si">No </button>
                    </div>
                </div>
            </div>
        </div>
    
asked by Drago25 29.02.2016 в 18:40
source

1 answer

4

You can solve it by adding this to your css

.modal-dialog{
    overflow-y: initial !important
}
.modal-body{
    height: 250px;
    overflow-y: auto;
}

link

Note: Remember that your css has to be applied after bootstrap.css

    
answered by 29.02.2016 / 18:50
source