prop fix takes also "line-height" into account (see #812)
This commit is contained in:
parent
756183f607
commit
b98898d95b
2
src/jquery/jquery.js
vendored
2
src/jquery/jquery.js
vendored
|
@ -1268,7 +1268,7 @@ jQuery.extend({
|
|||
return value.call( elem, [index] );
|
||||
|
||||
// exclude the following css properties to add px
|
||||
var exclude = /z-?index|font-?weight|opacity|zoom/i;
|
||||
var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i;
|
||||
|
||||
// Handle passing in a number to a CSS property
|
||||
if ( value.constructor == Number && type == "curCSS" && !exclude.test(prop) )
|
||||
|
|
Loading…
Reference in a new issue