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();
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();