🐛 modals: re-add missing minHeight support

This commit is contained in:
Gina Häußge committed 2019-05-03 16:44:38 +02:00
1 parent 1e3b8dfb2c
commit b3173386ae
1 file changed
+10 -2
+10 -2
View File
@@ -107,7 +107,8 @@
layout: function () {
var prop = this.options.height ? 'height' : 'max-height',
value = this.options.height || this.options.maxHeight;
value = this.options.height || this.options.maxHeight,
minHeight = this.options.minHeight;
if (this.options.width){
this.$element.css('width', this.options.width);
@@ -127,7 +128,8 @@
this.$element.find('.modal-body')
.css('overflow', '')
.css(prop, '');
.css(prop, '')
.css('min-height', '');
if (value){
this.$element.find('.modal-body')
@@ -135,6 +137,11 @@
.css(prop, value);
}
if (minHeight) {
this.$element.find('.modal-body')
.css('min-height', minHeight);
}
var modalOverflow = $(window).height() - 10 < this.$element.height();
if (modalOverflow || this.options.modalOverflow) {
@@ -342,6 +349,7 @@
width: null,
height: null,
maxHeight: null,
minHeight: null,
modalOverflow: false,
consumeTab: true,
focusOn: null,