PDA

View Full Version : TreeNode ensureVisible



Asken
28 Jun 2010, 12:59 AM
I have this:


var dimNode = nsObjects.root.findChild('uniqueName', un);
dimNode.ensureVisible(function() { alert('Visible!'); } );
The alert is called but the node is neither expanded or scrolled to. Seems simple enough but it's not working.

I also tried this to no avail (and some combinations):


dimNode.getOwnerTree().getTreeEl().scrollChildIntoView(dimNode.getUI().getAnchor());


Is there something I'm missing here?

K