PDA

View Full Version : [DUP] Setting container body with TPL makes it unscrollable



swarnendude
25 Oct 2011, 11:01 PM
I created a simple panel with some html inside like this:


Ext.create('Ext.Panel, {
scrollable : 'vertical',
html : 'Some data'
});

And then replaced it like this:


var panel = Ext.create('Ext.Panel, {
scrollable : 'vertical',
tpl: '{data}'
});

panel.setData({
data : 'Some data'
});

In 1st case the panel scrolls properly but not in 2nd case. Any idea?

Jamie Avins
31 Oct 2011, 11:48 AM
A bug we need to fix.

mengkuan
2 Nov 2011, 1:43 AM
I did something like this to work around the problem.



panel.update(panel.config.tpl.apply({data: 'some data'}));
panel.show();