Bootstrap 3 modal centrado

Estilos .modal { text-align: center; padding: 0!important; } .modal:before { content: ”; display: inline-block; height: 100%; vertical-align: middle; margin-right: -4px; } .modal-dialog { display: inline-block; text-align: left; vertical-align: middle; }   JS function setModalMaxHeight(element) { this.$element = $(element); this.$content = this.$element.find(‘.modal-content’); var borderWidth = this.$content.outerHeight() – this.$content.innerHeight(); var dialogMargin = $(window).width() < 768 ? 20…