aboutsummaryrefslogtreecommitdiffstats
path: root/src/css.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2009-11-11 14:17:16 -0500
committerJohn Resig <jeresig@gmail.com>2009-11-11 14:17:16 -0500
commit449e099b97d823ed0252d8821880bc0e471701ea (patch)
treefe3688af9e59f710cd2f31d3a2f8cf25b22ff687 /src/css.js
parentbf71575bb4f37321b71ef8ce21c8208ad2b192da (diff)
downloadjquery-449e099b97d823ed0252d8821880bc0e471701ea.tar.gz
jquery-449e099b97d823ed0252d8821880bc0e471701ea.zip
Landing tweak from 'haruka' that fixes non-pixel fontSize values in IE. Fixes #760.
Diffstat (limited to 'src/css.js')
-rw-r--r--src/css.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/css.js b/src/css.js
index 6abcc956a..ddd42b4b2 100644
--- a/src/css.js
+++ b/src/css.js
@@ -167,7 +167,7 @@ jQuery.extend({
// Put in the new values to get a computed value out
elem.runtimeStyle.left = elem.currentStyle.left;
- style.left = ret || 0;
+ style.left = camelCase === "fontSize" ? "1em" : (ret || 0);
ret = style.pixelLeft + "px";
// Revert the changed values
@@ -212,4 +212,4 @@ if ( jQuery.expr && jQuery.expr.filters ) {
jQuery.expr.filters.visible = function(elem){
return !jQuery.expr.filters.hidden(elem);
};
-} \ No newline at end of file
+}