🐛 modals: re-add missing minHeight support
This commit is contained in:
1 parent
1e3b8dfb2c
commit
b3173386ae
1 file changed
+10
-2
+10
-2
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user