Skip to content

Commit

Permalink
Core: Fixed spacing.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgonzalez committed Mar 29, 2011
1 parent 2197c61 commit cd29170
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/jquery.ui.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,12 @@ $.each( [ "Width", "Height" ], function( i, name ) {

function reduce( elem, size, border, margin ) {
$.each( side, function() {
size -= parseFloat( $.curCSS( elem, "padding" + this, true) ) || 0;
size -= parseFloat( $.curCSS( elem, "padding" + this, true ) ) || 0;
if ( border ) {
size -= parseFloat( $.curCSS( elem, "border" + this + "Width", true) ) || 0;
size -= parseFloat( $.curCSS( elem, "border" + this + "Width", true ) ) || 0;
}
if ( margin ) {
size -= parseFloat( $.curCSS( elem, "margin" + this, true) ) || 0;
size -= parseFloat( $.curCSS( elem, "margin" + this, true ) ) || 0;
}
});
return size;
Expand Down

0 comments on commit cd29170

Please sign in to comment.