From 86a3d9f3d9e8bc9c2e0e269a0ae9e6c08b6c4bfc Mon Sep 17 00:00:00 2001 From: Jesse Date: Wed, 16 Jan 2019 22:05:55 -0500 Subject: [PATCH] remove custom layoutStrategy of KeyboardHelpDialog, see #435 --- js/KeyboardHelpDialog.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/js/KeyboardHelpDialog.js b/js/KeyboardHelpDialog.js index 497aa92e..dab16e0c 100644 --- a/js/KeyboardHelpDialog.js +++ b/js/KeyboardHelpDialog.js @@ -45,17 +45,7 @@ define( function( require ) { titleAlign: 'center', fill: 'rgb( 214, 237, 249 )', ySpacing: 15, - tandem: Tandem.required, - - // the width of the KeyboardHelpDialog is constrained to the simulation bounds - layoutStrategy: function( dialog, simBounds, screenBounds, scale ) { - - // empirically determined to have some margin relative to max width - dialog.maxWidth = ( simBounds.width / scale ) * 0.90; - - // this is the default layout strategy in Dialog - dialog.center = simBounds.center.times( 1.0 / scale ); - } + tandem: Tandem.required }, options ); // title