I notice in your Documentation/Samples application that if you expand the tree nodes, in the Documentation tab, sufficiently enough to force the vertical and horizontal scrollbar to appear and then scroll down to the bottom of the tree you will see the same scrollbars and be at the same position after you switch to the Samples tab. It would appear that both (all) tabs are sharing the same scrollbar state and position.
Is there anyway for each tab to have its own state?
Sure, each tab has its own scrollbar. THere is no real tab contnet in Docs&Samples - clicking on tab you just call function which changes the contnet of the tree. The scrollbar you see is a scrollbar of the tree.
Sure I agree that the tabbar control is a container for two trees:
- tree=new dhtmlXTreeObject(“doctree_box”,“100%”,“100%”,0);
- tree_smpl=new dhtmlXTreeObject(“smpltree_box”,“100%”,“100%”,0);
Please refer to the attached rar file. This file contains examples of dhtmlxTree that demonstrate the incorrect behaviour of tree APIs when trees are embedded in dhtmlxTab.
tree_single.html - correct behaviour of scrollbar, find and keyboard navigation
tree_tabbed.html - demonstrates the incorrect behaviour of scrollbar, find and keyboard navigation. This example also fails to set focus in parent.tree
dhTree.rar (275 KB)