Fix for bad Firefox positioning at bottom, fix for #10270

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