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 

make text wrap...please help!

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



Joined: 04 May 2005
Posts: 4

PostPosted: Wed May 04, 2005 11:09 am    Post subject: make text wrap...please help! Reply with quote

hi everyone,
am a bit desperate as i've tried everything to make my nodes in the tree wrap, i.e. see the problem here http://www.akws-law.ch/de/ if you click on "Dienstleistungen" you will see that some of the text is too long and overlaps on the right. I need it to cut and continue below.

i've tried already tried the FAQ http://javascript.cooldev.com/doc/faq/tree.php#IDAZEKO with the question: " Some nodes in my tree have very long captions. How can I make text wrap?" but that doesnt seem to work!?

i'd greatly appreciate any help in solving this.

thank you!
Back to top
orangeowl



Joined: 04 May 2005
Posts: 4

PostPosted: Wed May 04, 2005 2:05 pm    Post subject: <br> ?? Reply with quote

hmmm...i've seem to have solved the problem temporarily by simply putting a <br> where i want it to break. somehow this seems to simple to be true. is there a catch? better way of doing it?

thanks!
Back to top
Victor_Chuiko
Support Team


Joined: 12 Apr 2005
Posts: 145

PostPosted: Wed May 04, 2005 4:15 pm    Post subject: Reply with quote

You had problems using <br> because your <div> containers where isude table with nowrap="true". So you need to do it either as it described in our FAQ or you can add <!DOCTYPE XTML ... > to your html and add a CSS-atribute white-space:normal to your <div> containers.
But, anyway, we recommend you to purchase COOLjsTree Professional. It has a built-in wrap feature and is much more robust and convenient.
Back to top
orangeowl



Joined: 04 May 2005
Posts: 4

PostPosted: Wed May 04, 2005 8:57 pm    Post subject: Reply with quote

hi thanks for the reply.
actually i meant to say that the <br> solution did work, i just want surprised and not sure if its a good way to do it.

but i have a different question, if you look at the same page (and any other page for that matter) www.akws-law.ch/de , it always scrolls at the bottom for no reason, why is it there and how can i get rid of it??

thanks again!!
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Wed May 04, 2005 9:03 pm    Post subject: Reply with quote

You are using version 1.4.0. I'd recommend you to use latest 2.6.5 (visit our updates section) - this will solve the problem. If you'll experience problems with identing childless nodes, then adjust your tree_format.js file (note that third zero):
Code:
//4. size of images (width, height,ident for nodes w/o children)
   [16,16,0],
Back to top
orangeowl



Joined: 04 May 2005
Posts: 4

PostPosted: Wed May 04, 2005 9:55 pm    Post subject: : ) i'm happy now : ) Reply with quote

wonderful!!! thanks and keep up the awesome work!!
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