• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 275
  • Last Modified:

Spry.Widget.MenuBar height?

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
vkchaitu82
Asked:
vkchaitu82
  • 2
1 Solution
 
remorinaCommented:
Hi vkchaitu82,

Try document.getElementById('YourContainerID').scrollHeight, this should return the actual height being rendered regardless of the overflow content.
0
 
vkchaitu82Author Commented:
Thanks. is there any thing like that in Jquery also?
0
 
remorinaCommented:
You can try $("#element").outerHeight();

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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now