Bug Tracker

Ticket #1796: 1796.diff

File 1796.diff, 507 bytes (added by davidserduke, 9 months ago)

new patch

  • src/core.js

     
    764764 
    765765            // Revert the padding and border widths to get the 
    766766            // correct height/width values 
    767             jQuery.each([ "Top", "Bottom", "Right", "Left" ], function(){ 
     767            jQuery.each(name == "width" ? [ "Right", "Left" ] : [ "Top", "Bottom" ], function(){ 
    768768                old[ "padding" + this ] = 0; 
    769769                old[ "border" + this + "Width" ] = 0; 
    770770            });