PDA

View Full Version : TreePanel autoscroll



ssamuel68
14 Mar 2013, 7:14 AM
Hi,

I'm having a problem with my treepanel.

On my first load the treepanel set the height to 300px for example. When I open a folder on my tree the height is still 300, son when it expand the last items dont show and the panel dont scroll.

Here is the code of my tree


var panel = Ext.create('Ext.tree.Panel', {
title: 'Folder Tree',
autoScroll: true,
store: treeStore,
rootVisible: false
});



What Im missing here.

Thx

ssamuel68
14 Mar 2013, 11:22 AM
Sorry,

On the parent I only add layout: 'fit' and that do the job. ....

How I mark this as answered?