fix to offset in firefox
Merge pull request #1 from vinculis/master

fixed offset for firefox