this.callback = cb;
this.data = data;
- this.dialog.show(this.data._el);
+ this.dialog.show.apply(this.dialog, Array.prototype.slice.call(arguments).slice(2));
if (this.form) {
this.form.reset();
this.form.setValues(data);
items : [
{
xtype : 'ContentPanel',
+ fitContainer : true,
fitToFrame : true,
region : 'center',
xns : Roo,
_this.form.findField('imgtype').hide();
+ _this.dialog.resizeTo(500, 140);
+
if(_this.data._show_image_type){
_this.form.findField('imgtype').show();
+ _this.dialog.resizeTo(500, 170);
}
this.url = _this.data._url ? _this.data._url : baseURL + '/Roo/Images.php';