From 44520c52e9601f171e34f6500a24957d6a344844 Mon Sep 17 00:00:00 2001 From: Jonathan Olson Date: Wed, 29 Jul 2020 14:10:35 -0600 Subject: [PATCH] Adjusting dialog's layout strategy to new style, see https://github.com/phetsims/joist/issues/586 --- js/common/view/AllFilledDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/common/view/AllFilledDialog.js b/js/common/view/AllFilledDialog.js index 9d69de66..a7bcc966 100644 --- a/js/common/view/AllFilledDialog.js +++ b/js/common/view/AllFilledDialog.js @@ -36,7 +36,7 @@ class AllFilledDialog extends Dialog { bottomMargin: 10, cornerRadius: BAMConstants.CORNER_RADIUS, layoutStrategy: ( dialog, simBounds, screenBounds, scale ) => { - this.center = screenBounds.center.times( 1.0 / scale ).minusXY( 75, 75 ); + this.center = dialog.layoutBounds.center.minusXY( 75, 75 ); } }, options );