Figgured it out.
In one of my modals, the way I was doing columns inside with css involved incredibly large amounts of bottom-padding. On the main page this works fine, but for whatever reason, inside the modal, the padding causes the page to extend for that many pixels. I reduced the padding and the problem went away.