Hey,
a quick check at the code did not tell me much about it. But it seems like 
there is no batch mode in the current implementation for setting tree nodes 
open / close so every close triggers a reflow.
Sorry,
Martin


Am 25.09.2012 um 05:16 schrieb Richard Suematsu 
<[email protected]<mailto:[email protected]>>:

I’m using TreeVirtual and I created buttons to expand and collapse all nodes 
within the tree.  Under IE8, the expand runs slow enough that I get the “Stop 
running this script?” message box.  Any suggestions on how to speed it up?  
Collapse is quick.  The slow part appears to be the nodeSetOpened call.

Here’s my code-

var treeData = tree.getDataModel().getData();

for (var i = treeData.length - 1; i > 0; i--) {
                if (treeData[i]) {
                                tree.nodeSetOpened(treeData[i], true);
                }
}

If I had to guess, it’s the screen updates between each call that is slowing it 
down.  Is there a way to disable it while updating all the nodes?

Thanks,
Rich



________________________________
Confidentiality Notice: This e-mail message, including any attachments, is for 
the sole use of the
intended recipient(s) and may contain confidential and privileged information. 
Unauthorized
review, use, disclosure or distribution is prohibited. If you are not the 
addressee indicated in this
message kindly notify the sender by reply e-mail and destroy all copies of the 
original message.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats.http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________
qooxdoo-devel mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to