Use getBoundingClientRect for a more precise way of calculating the element offsets
Use parseFloat instead of parseInt for better subpixel rendering support
Removing the mention of 'this'
Simplifying offset condition. Always use getBoundingClientRect solution.
Removing Browser from dependency
Merge pull request #228 from mariomc/fixDimensions

Fix dimensions