Solved

Spry.Widget.MenuBar height?

Posted on 2010-11-10
3
254 Views
Last Modified: 2012-05-10
I am using  Dreamweaver . I have  Spry.Widget.MenuBar which is horizontal.

How can I know the height of the menu bar?
Reason is I am calculating the height of the total container and doing some math to get a image.
I see that when I do size of container I get size including the Spry menu.
Because of this my image is exceeding.

Can you pl tell me a function with which I can know the size of spry?
0
Comment
Question by:vkchaitu82
  • 2
3 Comments
 
LVL 22

Expert Comment

by:remorina
ID: 34116743
Hi vkchaitu82,

Try document.getElementById('YourContainerID').scrollHeight, this should return the actual height being rendered regardless of the overflow content.
0
 

Author Comment

by:vkchaitu82
ID: 34118060
Thanks. is there any thing like that in Jquery also?
0
 
LVL 22

Accepted Solution

by:
remorina earned 250 total points
ID: 34118164
You can try $("#element").outerHeight();

http://api.jquery.com/outerHeight/
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now