Skip to content

Commit

Permalink
create layoutStrategyCenteredInScreen, KeyboardHelpDialog to use it, p…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Jul 29, 2019
1 parent 2956714 commit 6faa065
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,12 @@ define( require => {
focusCloseButton() {
this.closeButton.focus();
}
}, {

// @public - Center in the screenBounds (doesn't include the navigation bar)
layoutStrategyCenteredInScreen: function( dialog, simBounds, screenBounds, scale ) {
dialog.center = screenBounds.center.times( 1.0 / scale );
}
} );


Expand Down

0 comments on commit 6faa065

Please sign in to comment.