diff --git a/src/app/components/dialog/dialog.ts b/src/app/components/dialog/dialog.ts index 6ece1d4110f..fa21aa3309f 100755 --- a/src/app/components/dialog/dialog.ts +++ b/src/app/components/dialog/dialog.ts @@ -482,7 +482,7 @@ export class Dialog implements AfterContentInit,OnInit,OnDestroy { let containerHeight = DomHandler.getOuterHeight(this.container); let deltaX = event.pageX - this.lastPageX; let deltaY = event.pageY - this.lastPageY; - let offset = DomHandler.getOffset(this.container); + let offset = this.container.getBoundingClientRect(); let leftPos = offset.left + deltaX; let topPos = offset.top + deltaY; let viewport = DomHandler.getViewport();