Solved

Spry.Widget.MenuBar height?

Posted on 2010-11-10
3
252 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

747 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

13 Experts available now in Live!

Get 1:1 Help Now