I have a modal in which I indicate preliminary information to perform these actions, but some data surpass the space of modal
. Here is an example of a modal
I use.
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<div id="ModalEliminar" class="modal fade in" role="dialog" style="overflow-y: scroll; display: block;" aria-hidden="false">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-tittle">Eliminar </h4> </div>
<form class="form-horizontal" role="form">
<div class="panel-body">
<input type="hidden" class="form-control" id="eliminar_id" disabled="" value="4">
<div class="form-group col-md-12">
¿Esta seguro de eliminar este item?
</div>
<div class="form-group col-md-12">
<label class="control-label">Código: </label>
<div>
<span id="eliminar_codigo">10000</span>
</div>
</div>
<div class="form-group col-md-12">
<label class="control-label">Nombre: </label>
<div>
<span id="eliminar_nombre">Miovit producto que requiere cuidado y esterilización antes de entrar al proceso</span>
</div>
</div>
<div class="form-group col-md-12">
<label class="control-label">Presentación: </label>
<div>
<span id="eliminar_presentacion">Jarabe<br>155 gg</span>
</div>
</div>
<div class="form-group col-md-12">
<label class="control-label">Área Productiva:</label>
<div>
<span id="eliminar_linea_de_produccion">ASDF6546546546SADF541652SDF1651654165SDFSADF4641452451</span>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">
<span class="fa fa-remove"></span>
<span class="hidden-xs"> Cerrar</span>
</button> <button type="button" id="Eliminar" class="btn btn-primary">
<span class="fa fa-trash"></span>
<span class="hidden-xs"> Eliminar</span>
</button> </div>
</form>
</div>
</div>
</div>
If I know there are other modals
as lg
and normal. But they cover much more than what I need, or if I used the lg
it will be adapted to the content, it is the objective of my question.
NOTE: if I know that there is not a code so exaggeratedly long but there may be other X texts in my web that can exceed the amount of space that there is in the modal.
PS: give "full screen" to observe the modality how it works on my system.
Thank you in advance for helping me.