]> source.dussan.org Git - jquery-ui.git/commitdiff
Core: Fixed spacing.
authorScott González <scott.gonzalez@gmail.com>
Tue, 29 Mar 2011 14:17:40 +0000 (10:17 -0400)
committerScott González <scott.gonzalez@gmail.com>
Tue, 29 Mar 2011 14:17:40 +0000 (10:17 -0400)
ui/jquery.ui.core.js

index 9745419dc67c9fa718dd3c32ea5f61e120e88d30..51f6b71d786be8a32e0d20da49a56588bd8e04d6 100644 (file)
@@ -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;