disabled: false,
dialogClass: undefined,
draggable: true,
- height: 200,
+ height: 'auto',
maxHeight: undefined,
maxWidth: undefined,
- minHeight: 100,
+ minHeight: 150,
minWidth: 150,
modal: false,
overlay: {},
expect(3);
el = $('<div></div>').dialog();
- equals(dlg().height(), defaults.height, "default height");
+ equals(dlg().height(), defaults.minHeight, "default height");
el.remove();
el = $('<div></div>').dialog({ height: 437 });
})
.height();
- this.element.height(
- options.height == 'auto'
- ? 'auto'
- : options.height - nonContentHeight);
+ this.element
+ .css({
+ minHeight: options.minHeight - nonContentHeight,
+ height: options.height == 'auto'
+ ? 'auto'
+ : options.height - nonContentHeight
+ });
}
});
closeOnEscape: true,
closeText: 'close',
draggable: true,
- height: 200,
- minHeight: 100,
+ height: 'auto',
+ minHeight: 150,
minWidth: 150,
modal: false,
overlay: {},