Bug 956420 - Fix fixed margins on shorter-than-the-viewport pages. r=kats

If a page is shorter than the screen, but taller than the screen with margins,
and has a fixed position top or bottom bar, it would be offset incorrectly
when scrolling downwards.