Solved

Spry.Widget.MenuBar height?

Posted on 2010-11-10
3
265 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

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…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
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)

690 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