JavaScript.CoolDev.Com Support Forums

Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Overlap

 
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsTree
Author Message
gibsoncrash
Guest





PostPosted: Thu Jun 19, 2003 3:05 pm    Post subject: Overlap Reply with quote

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

PostPosted: Thu Jun 19, 2003 8:09 pm    Post subject: Reply with quote

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





PostPosted: Wed Jun 25, 2003 5:20 pm    Post subject: Great solution! Reply with quote

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

PostPosted: Sat Jul 12, 2003 10:08 am    Post subject: Still overlapping Reply with quote

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

PostPosted: Sat Jul 12, 2003 1:14 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsTree All times are GMT
Page 1 of 1