| Author |
Message |
gibsoncrash Guest
|
Posted: Thu Jun 19, 2003 3:05 pm Post subject: Overlap |
|
|
| My tree seems to be started with all the sections writen on top of each other. Then when you click on the edge to expand it out, then it rights itself. Is there a way to make it so that it doesn't do this. Is it a problem with my code? |
|
| Back to top |
|
 |
AlexKunin Developer
Joined: 03 Jan 2003 Posts: 1191
|
Posted: Thu Jun 19, 2003 8:09 pm Post subject: |
|
|
This is FAQ.
Probably, you are using non-Pro version of the tree, and you are trying to insert it into some contatiner like table cell or layer. This cannot be done with non-Pro, because this functionality called "relative positioning" is implemented in the Pro only (you can look at the samples here: http://javascript.cooldev.com/scripts/cooltreepro/demos/relative/index.html).
So, to resolve this issue with overlapping nodes you have to move initialization of your tree (<SCRIPT>new COOLjsTree(...)</SCRIPT>) out of any contatiners - it must be just inside the BODY. |
|
| Back to top |
|
 |
Jim Van Guest
|
Posted: Wed Jun 25, 2003 5:20 pm Post subject: Great solution! |
|
|
Hi. A compliment here to Alex...I was having similar problems, and suspected it was a container issue.
The solution:
a. was easy to find;
b. worked!
Once I'm done demo-ing this, look for a purchase of the PRO version:)
Many tks |
|
| Back to top |
|
 |
Bruce
Joined: 11 Jul 2003 Posts: 5 Location: New Zealand
|
Posted: Sat Jul 12, 2003 10:08 am Post subject: Still overlapping |
|
|
I am encountering the same problem with Pro - I'm using the example for the 'on-the-fly' generated tree.
I have relative positioning set to true - I'm using the tree_format.js in the asp directory of the demo (in the download) - have changed the path for the image directory but nothing else.
The table associated with the tree is held within another table - is this the cause of my problem?
Cheers,
Bruce |
|
| Back to top |
|
 |
AlexKunin Developer
Joined: 03 Jan 2003 Posts: 1191
|
Posted: Sat Jul 12, 2003 1:14 pm Post subject: |
|
|
| Your code must contain "RedrawAllTrees()" call right before the </BODY> or in the <BODY onload="..."> handler. If it does, and things are still wrong, then please contact jssupport@cooldev.com and provide more details. |
|
| Back to top |
|
 |
|