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 

vertical alignment of text with arrows

 
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsMenu
Author Message
camner



Joined: 05 Jun 2003
Posts: 21

PostPosted: Thu Jun 26, 2003 9:10 pm    Post subject: vertical alignment of text with arrows Reply with quote

The vertical alignment of the menu text with the menu "cell" seems to be different when an arrow is included as compared to when an arrow is not included. With an arrow, the text seems precisely in the middle; without an arrow, it seems to be up a pixel or so.

See http://www.charleswright.org/index_test1.htm for an example. Is this an unintended consequence of the way I am setting this up or is this inherent in the cooljsmenupro code?
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Thu Jun 26, 2003 9:35 pm    Post subject: Reply with quote

Please, go to coolmenupro.js and find the following line:
Code:
var table=(nn(this.arrow) && this.hc()) || nn(this.image);

Then change it like this:
Code:
var table=true;

Now all of your items will be centered vertically.
Back to top
camner



Joined: 05 Jun 2003
Posts: 21

PostPosted: Thu Jun 26, 2003 10:39 pm    Post subject: Reply with quote

Thank you. Are there other consequences to the change you suggest? Was there a rationale for the way it was set up initially?
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Fri Jun 27, 2003 11:19 am    Post subject: Reply with quote

Table is complex object, and it is not very good idea to have many little tables on a single page because it will be hard for browser to render HTML code. That is why tables are on only for items with arrows by default.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsMenu All times are GMT
Page 1 of 1