mirror of
https://github.com/jquery/jquery.git
synced 2026-02-06 09:05:08 -05:00
Make sure that non-px values aren't manipulated before input to height/width.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user