PDA

View Full Version : How to change wigth after Basic dialog creation ?



BorodaAlex
6 Jun 2007, 2:14 AM
How to change wigth after dialog creation ?
I create dilalog like this:

var ShowPopup = function(idDiv){

this.dialog = new Ext.BasicDialog( idDiv, {
autoTabs:false,
shadow:true,
width:830,
height:520,
minWidth:300,
minHeight:250,
resizable: false,
autoScroll:true,
proxyDrag: true,
draggable: true,
fixedcenter: false,
shim: true,
constraintoviewport: false

});
this.isOpen = false;

};


ShowPopup.prototype = {
showPopup : function()
{
this.dialog.show();
}

};


var instance = new ShowPopup('mainDiv');
instance.dialog.width = 300; // It does not work, the width remains same, as at creation.
instance.showPopup();

Animal
6 Jun 2007, 2:32 AM
http://extjs.com/deploy/ext-1.1-beta1/docs/output/Ext.BasicDialog.html#resizeTo

efege
6 Jun 2007, 4:13 AM
BorodaAlex, could you please replace wigth with width in the title of your post, so that people who search titles only still find your post? Thanks :)