Skip to content

Commit 082b896

Browse files
committed
fix(resizing): calculating the position of the resizing line
1 parent b3b2eee commit 082b896

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/igniteui-angular/src/lib/grids/resizing/resizer.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export class IgxColumnResizerDirective implements OnInit, OnDestroy {
123123
if (parentRectWidth && parentComputedWidth && parentRectWidth / parentComputedWidth !== 1) {
124124
this._ratio = parentRectWidth / parentComputedWidth;
125125
}
126-
this.left = this._left = (event.clientX - parent.getBoundingClientRect().left) / (this._ratio);
126+
this.left = this._left = (event.clientX - parent.getBoundingClientRect().left) / this._ratio;
127127
this.top = (event.target as HTMLElement).getBoundingClientRect().top - parent.getBoundingClientRect().top;
128128

129129
this.resizeStart.next(event);

0 commit comments

Comments
 (0)