Fix for bad Firefox positioning at bottom

Fixes issue #10270
Firefox sometimes erroneously reports a float instead of an int for position.top. Math.ceil rounds this up and corrects the calculation