Bug Tracker

Ticket #3331: curCSS.patch

File curCSS.patch, 555 bytes (added by jeff_themovie, 11 years ago)
  • jQuery/src/core.js

    diff -Nru a/jQuery/src/core.js b/jQuery/src/core.js
    a b  
    917917
    918918                        // If we're not dealing with a regular pixel number
    919919                        // but a number that has a weird ending, we need to convert it to pixels
    920                         if ( !/^\d+(px)?$/i.test( ret ) && /^\d/.test( ret ) ) {
     920                        if ( !/^-?\d+(px)?$/i.test( ret ) && /^-?\d/.test( ret ) ) {
    921921                                // Remember the original values
    922922                                var left = style.left, rsLeft = elem.runtimeStyle.left;
    923923