That is because the DIV content height is 100% of the viewport height, but now you add an extra DIV on top of that, it will be the height of that header DIV + 100% of your viewport height.
Why not simply create a header inside your application shell? that way you ensure you won't have any height render issues