PDA

View Full Version : [CLOSED] scroll treepanel



lenoil
16 Dec 2013, 1:26 AM
Hi,

I have a problem with the scroll

The problem is referenced by the link : http://fiddle.jshell.net/P9TkZ/15/

If I click node 3, it expends ...
Then if I click of node 6 the scroll up then it should be don't move and show the node

What's the problem because I am lost ?


Thanks you for your help.

lenoil

Gary Schlosberg
19 Dec 2013, 12:12 PM
I'm not following you on this, as the tree seems to be functioning correctly in your example. I click the 'node3' folder and it expands. I then click the 'node6' folder and it also expands. The scrollbar increases in size to accommodate the children, though they are not visible since 'node6' was previously at the bottom of view. Can you clarify what behavior you are expecting?

lenoil
3 Jan 2014, 3:16 AM
Thanks you for looking at my problem, Gary

The problem is here:
http://fiddle.jshell.net/lenoil/nEMY2/6/

You click:
- node3 and it expand
- node4 and it expand
- node6 and the scroll up in my combo, I don't see node 6 what's the problem ?


Thanks for your response.

lenoil
3 Jan 2014, 6:44 AM
I tried to add a listener in a treepanel but it doesn't work :(


listeners : {
itemexpand : function(ni, opt)
{
console.log(this.el);
var view = _tree.getView();
var nodeHTML = view.getNode(ni);
console.log(view.el);
Ext.fly(nodeHTML).scrollIntoView(view.el);
}

}

Gary Schlosberg
17 Jan 2014, 7:36 PM
I see it now. I have opened a bug in our bug tracker.