Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Sonia Svaldi on Sep 11, 2008 00:18
open dhtmlx forum
dhtmlXTree and scrollbar

I have a tree in a resizable div. I must create the tree with a fixed width otherwise I have problems with Firefox. If the tree has the scrollbar and I enlarge the div, the scrollbar remains at the same position, but I would like that the widht of the tree and its scrollbar enlarge together with my div, and they have to have the same width.
How can I resolve this problem?
Answer posted by Support on Sep 11, 2008 02:51
Just use 100% as width and height of tree's container. 
The tree need not any addiitonal js command to adjust to the new size

<div id="tree_box" style="width:100%; height:100%; " ...