3.2.0

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
August 23,
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++
August 23,
I forgot to say that above & yours just need at the end :
tree.refresh()
August 23,
Thank you very much!
jinchao
August 23,

This topic is archived.

See also:


Back to support forum