PDA

View Full Version : autoscroll + panel problem



saito1504
29 Aug 2009, 5:28 PM
This is my code:



new Ext.Window({

title: 'window',
height: 300,
width: 300,
layout: 'auto',
autoscroll: true,
items: [{

xtype: 'panel',
height: 600,
width: 600,
id: 'panel'

}],
buttons: [{

text: 'show',
handler: function (){
alert('Panel Heigth: '+Ext.getCmp('panel').height+' & Width: '+Ext.getCmp('panel').width)

}


}]

}).show()


I have a "Panel" lager than the window, yet the scroll bars are not appearing...

What i'm I doing wrong? :((

Animal
30 Aug 2009, 8:40 AM
But why have you sized your Panel explicitly?

In fact, why are you putting a Panel inside the title: 'window' Panel?