Skip to content

Commit d73edff

Browse files
committed
Resizable: Removed pixel shifting for IE6.
1 parent 0c67254 commit d73edff

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

ui/jquery.ui.resizable.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -464,16 +464,12 @@ $.widget("ui.resizable", $.ui.mouse, {
464464

465465
this.helper = this.helper || $('<div style="overflow:hidden;"></div>');
466466

467-
// fix ie6 offset TODO: This seems broken
468-
var ie6offset = ($.ui.ie6 ? 1 : 0),
469-
pxyoffset = ( $.ui.ie6 ? 2 : -1 );
470-
471467
this.helper.addClass(this._helper).css({
472-
width: this.element.outerWidth() + pxyoffset,
473-
height: this.element.outerHeight() + pxyoffset,
468+
width: this.element.outerWidth() - 1,
469+
height: this.element.outerHeight() - 1,
474470
position: 'absolute',
475-
left: this.elementOffset.left - ie6offset +'px',
476-
top: this.elementOffset.top - ie6offset +'px',
471+
left: this.elementOffset.left +'px',
472+
top: this.elementOffset.top +'px',
477473
zIndex: ++o.zIndex //TODO: Don't modify option
478474
});
479475

0 commit comments

Comments
 (0)