From 2bf08c621a63c4557a153ae24ceb4f24aa31eb93 Mon Sep 17 00:00:00 2001 From: yigitfindikli Date: Wed, 30 Mar 2022 10:46:20 +0300 Subject: [PATCH] Refactor #11284 --- src/app/components/dialog/dialog.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);