]> source.dussan.org Git - jquery-ui.git/commitdiff
Resizable: Removed pixel shifting for IE6.
authorScott González <scott.gonzalez@gmail.com>
Fri, 26 Oct 2012 19:48:37 +0000 (15:48 -0400)
committerScott González <scott.gonzalez@gmail.com>
Fri, 26 Oct 2012 19:48:37 +0000 (15:48 -0400)
ui/jquery.ui.resizable.js

index fc4868c3765fbca35c666a99de12164c2e8f0ff9..c282f2950704274950d93df27d20fc70da98c474 100644 (file)
@@ -464,16 +464,12 @@ $.widget("ui.resizable", $.ui.mouse, {
 
                        this.helper = this.helper || $('<div style="overflow:hidden;"></div>');
 
-                       // fix ie6 offset TODO: This seems broken
-                       var ie6offset = ($.ui.ie6 ? 1 : 0),
-                       pxyoffset = ( $.ui.ie6 ? 2 : -1 );
-
                        this.helper.addClass(this._helper).css({
-                               width: this.element.outerWidth() + pxyoffset,
-                               height: this.element.outerHeight() + pxyoffset,
+                               width: this.element.outerWidth() - 1,
+                               height: this.element.outerHeight() - 1,
                                position: 'absolute',
-                               left: this.elementOffset.left - ie6offset +'px',
-                               top: this.elementOffset.top - ie6offset +'px',
+                               left: this.elementOffset.left +'px',
+                               top: this.elementOffset.top +'px',
                                zIndex: ++o.zIndex //TODO: Don't modify option
                        });