:: Forum >>

Tree div width

How can i change the tree's div width? I use the tree code in exampleCBut the div is too small.I set my div with,but it doesnot work.

<div id="tree1" style="width: 800px;height: 800px;"></div>

tree.setId("tree1");
....
jinchao
Monday, August 23, 2010
You can use either setSize for both dimensional sizes ...
http://www.activewidgets.com/aw.system.html/setsize.html
Note: for aw form controls setControlSize can be used also
or do it independent on each by setStyle:
http://www.activewidgets.com/aw.system.html/setstyle.html
<div id="tree1"></div>

tree.setId("tree1");
//option1
tree.setSize(700,300); // width,height

//option2
//tree.setStyle('width', '400px');
//tree.setStyle('height', '100px');
C++
Monday, August 23, 2010
I forgot to say that above & yours just need at the end :
tree.refresh()
Monday, August 23, 2010
Thank you very much!
jinchao
Monday, August 23, 2010

This topic is archived.


Back to support forum

Forum search