From 418e98cb575dfe61165f614e45c57cf1a561f99c Mon Sep 17 00:00:00 2001 From: Shallowmallow Date: Sun, 18 Feb 2024 19:27:34 +0100 Subject: [PATCH] Honour centeDialog --- haxe/ui/backend/DialogBase.hx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/haxe/ui/backend/DialogBase.hx b/haxe/ui/backend/DialogBase.hx index 73525acdb..1cf95391b 100644 --- a/haxe/ui/backend/DialogBase.hx +++ b/haxe/ui/backend/DialogBase.hx @@ -183,7 +183,9 @@ class DialogBase extends Box implements Draggable { } Toolkit.callLater(function() { handleVisibility(true); - centerDialogComponent(cast(this, Dialog)); + if (centerDialog) { + centerDialogComponent(cast(this, Dialog)); + } _forcedLeft = null; _forcedTop = null; if (autoCenterDialog) {