mardi 1 avril 2014

Resize a window using setWidth and setHeight on browser resize

Hi,



I have a window that sizes itself according to the browser width and height.



I have to resize this rendered window on browser resize as well.



I have written the following code for that:

var myDialog = Ext.widget('mydialog');

myDialog .setHeight(Ext.getBody().getViewSize().height- 100);

myDialog .setWidth(Ext.getBody().getViewSize().width- 100);

myDialog .doLayout();



But not working.Please help.



Thanks




Aucun commentaire:

Enregistrer un commentaire