Patching jQuery functions that return incorrect values when various browsers are zoomed
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
test
.gitignore
README.md
build.properties
build.xml

README.md

jQuery ZoomFix

Some browsers give incorrect values for CSS and offset properties when the browser size is zoomed. As a result, jQuery apperance methods can give incorrect values.

This plugin aims to address that at the expense of performance.

This is very much a work-in-progress and currently only fixes:

  • .css('top')
  • .css('left')
  • .css('width')
  • .css('height')
  • .css('padding-*')
  • .css('margin-*')
  • .css('border-*-width')
  • .width()
  • .height()

To Use

Simply include jquery.zoomfix.js after jQuery. It patches the normal jQuery apperance methods.