zurb/foundation — pull request #2395 by seantimm (2013-09-01 06:33:58+00:00)
Title: topbar.js adding uneccessary padding to body

I am having trouble with the topbar js. It is adding incorrect padding to my body tag. (Sometimes in Firefox, All the time in Chromium/Chrome)

The problem is at Line 49 of foundation.topbar.js. It is calculating an incorrect outerHeight somehow. My question is this: Is this something the javascript should even be attempting to handle? Wouldn't this be better handled by CSS? I would much rather add the necessary padding for my fixed top-bar in the css. As it is right now, I can't override it because the javascript is putting a style attribute directly on the body tag.

I attached some screenshots of chrome's erroneous version, and the correct version in Firefox. (Sometimes Firefox does it too.)

Correct format:
![correct](https://f.cloud.github.com/assets/263341/520475/30d7f444-bf39-11e2-85d8-3ede2f2cd14d.png)

Incorrect format:
![body-padding-added](https://f.cloud.github.com/assets/263341/520476/34cb53ac-bf39-11e2-8396-1a967a793d85.png)