From 7f8b13da95269a13f9d56f15c4e06acff1803da1 Mon Sep 17 00:00:00 2001 From: aleprex99 <58468712+aleprex99@users.noreply.github.com> Date: Thu, 12 Oct 2023 10:08:52 +0200 Subject: [PATCH] Issue #13856 / Dialog: bad drag behavior when keepInViewport is false Fixes #13856 --- src/app/components/dialog/dialog.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/dialog/dialog.ts b/src/app/components/dialog/dialog.ts index 285a62a972a..7da32e26b51 100755 --- a/src/app/components/dialog/dialog.ts +++ b/src/app/components/dialog/dialog.ts @@ -737,7 +737,7 @@ export class Dialog implements AfterContentInit, OnInit, OnDestroy { this.lastPageX = event.pageX; this.container.style.left = `${leftPos}px`; this.lastPageY = event.pageY; - this.container.style.top = `${leftPos}px`; + this.container.style.top = `${topPos}px`; } } } @@ -1016,4 +1016,4 @@ export class Dialog implements AfterContentInit, OnInit, OnDestroy { exports: [Dialog, SharedModule], declarations: [Dialog] }) -export class DialogModule {} \ No newline at end of file +export class DialogModule {}