PDA

View Full Version : how to resize a floating panel when resize browser?



nandhagopan
24 Jul 2011, 11:29 PM
Hi,

I have some issue with floating panel after resizing browser window.
Initially it's loading properly after i resize the browser window then i do Ext.getCmp('test').show()
it's not taking width 100% and not recalculating.

included sample code in this. any could help me in this to fix?

Sample Code:
var MessagePopup=Ext.Panel({
id:'test',
hidden:true,
floating:true,
style:{height:'40px',backgroundColor:'#f00,color:'#fff'},
width:'100%',
html:'Space Holder For My Message'
})