PDA

View Full Version : setting window size in pixel



harsha_velicheti
7 Oct 2009, 5:51 AM
Hi,
Can any one please let me know how to specify the height of a modal window in percentages rather than pixels.

TIA
Harsha

dlbjr
7 Oct 2009, 6:06 AM
var w = new Ext.Window({
width: screen.availWidth * 0.80,
height: screen.availHeight * 0.60,
layout: 'fit',
html: 'Test',
bodyStyle: 'padding:5px;',
});