Skip to content

Commit

Permalink
Merge pull request #585 from Shallowmallow/CenterDialog
Browse files Browse the repository at this point in the history
Honour centerDialog
  • Loading branch information
ianharrigan authored Feb 18, 2024
2 parents 0b0731b + 418e98c commit 639639a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion haxe/ui/backend/DialogBase.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 639639a

Please sign in to comment.