Fixes box-zooming in Firefox 18+
Merge pull request #1405 from gismartware/master

Fix for issue #1404