Skip to content

Commit

Permalink
Adjusting dialog's layout strategy to new style, see phetsims/joist#586
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanolson committed Jul 29, 2020
1 parent 8712c7a commit 44520c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/common/view/AllFilledDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down

0 comments on commit 44520c5

Please sign in to comment.