Menu icon Foundation
Reveal Modal height from page top calc issue

So, I've run into an issue building a reveal modal for a complex form. Ideally I'd like to be able to navigate back and forth between modals, but when I return to the previous modal, the top of the page height calculation means the modal appears near the bottom of the window.

This is of course an issue because the second modal is a lot longer than the first. I can compress that a bit with some tabs, etc, but still, it seems like a bug.

I've reproduced a minimal example here: http://codepen.io/Rocketpilot/pen/0505545993f96652faf68ab54125391c

modalrevealbug

So, I've run into an issue building a reveal modal for a complex form. Ideally I'd like to be able to navigate back and forth between modals, but when I return to the previous modal, the top of the page height calculation means the modal appears near the bottom of the window.

This is of course an issue because the second modal is a lot longer than the first. I can compress that a bit with some tabs, etc, but still, it seems like a bug.

I've reproduced a minimal example here: http://codepen.io/Rocketpilot/pen/0505545993f96652faf68ab54125391c