diff --git a/src/app/components/dialog/dialog.ts b/src/app/components/dialog/dialog.ts index fa21aa3309f..7feb391d17f 100755 --- a/src/app/components/dialog/dialog.ts +++ b/src/app/components/dialog/dialog.ts @@ -553,7 +553,7 @@ export class Dialog implements AfterContentInit,OnInit,OnDestroy { let newHeight = containerHeight + deltaY; let minWidth = this.container.style.minWidth; let minHeight = this.container.style.minHeight; - let offset = DomHandler.getOffset(this.container); + let offset = this.container.getBoundingClientRect(); let viewport = DomHandler.getViewport(); let hasBeenDragged = !parseInt(this.container.style.top) || !parseInt(this.container.style.left);