Make sure that non-px values aren't manipulated before input to height/width.
This commit is contained in:
parent
1ac3713e7f
commit
e3463946e1
2 changed files with 5 additions and 2 deletions
|
@ -155,7 +155,7 @@ jQuery.each(["height", "width"], function( i, name ) {
|
|||
},
|
||||
|
||||
set: function( elem, value ) {
|
||||
if ( value !== "" ) {
|
||||
if ( rnumpx.test( value ) ) {
|
||||
// ignore negative width and height values #1599
|
||||
value = parseFloat(value);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue