X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=Pman.Dialog.Image.js;h=50a667bffbc4cd05c5d0f65b4eb082c389042d9b;hp=fc046e5ac1a82a82c9f946d840e0c4917610780f;hb=1524f8b36295809a3eedd6da3c6494f8aa0d86f5;hpb=a88bd19d93025b91ad7c049afc368cc96dd1c930 diff --git a/Pman.Dialog.Image.js b/Pman.Dialog.Image.js index fc046e5a..50a667bf 100644 --- a/Pman.Dialog.Image.js +++ b/Pman.Dialog.Image.js @@ -197,6 +197,7 @@ Pman.Dialog.Image = { items : [ { xtype : 'ContentPanel', + fitContainer : true, fitToFrame : true, region : 'center', xns : Roo, @@ -222,8 +223,11 @@ Pman.Dialog.Image = { _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';