Skip to content
Permalink
Browse files

Core: Fixed spacing.

  • Loading branch information
scottgonzalez committed Mar 29, 2011
1 parent 2197c61 commit cd29170ae02b4a7eb290848f8523244c621e2893
Showing with 3 additions and 3 deletions.
  1. +3 −3 ui/jquery.ui.core.js
@@ -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;

0 comments on commit cd29170

Please sign in to comment.
You can’t perform that action at this time.