From f2aef6bc6a6f285d4b49f80799f589b0de1257ba Mon Sep 17 00:00:00 2001 From: pixelzoom Date: Mon, 13 Jul 2020 11:05:30 -0600 Subject: [PATCH] workaround for https://github.com/phetsims/joist/issues/586 and https://github.com/phetsims/joist/issues/639 --- js/AboutDialog.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/js/AboutDialog.js b/js/AboutDialog.js index 781f26ba..5ebe2241 100644 --- a/js/AboutDialog.js +++ b/js/AboutDialog.js @@ -18,9 +18,11 @@ import VBox from '../../scenery/js/nodes/VBox.js'; import VStrut from '../../scenery/js/nodes/VStrut.js'; import Dialog from '../../sun/js/Dialog.js'; import CreditsNode from './CreditsNode.js'; -import joistStrings from './joistStrings.js'; +import HomeScreenView from './HomeScreenView.js'; import joist from './joist.js'; +import joistStrings from './joistStrings.js'; import packageJSON from './packageJSON.js'; +import ScreenView from './ScreenView.js'; import updateCheck from './updateCheck.js'; import UpdateNodes from './UpdateNodes.js'; import UpdateState from './UpdateState.js'; @@ -223,7 +225,10 @@ function AboutDialog( name, version, credits, locale, phetButton, tandem ) { tandem: tandem, phetioReadOnly: true, // the AboutDialog should not be settable phetioState: true, - phetioDynamicElement: true + phetioDynamicElement: true, + + //TODO workaround for https://github.com/phetsims/joist/issues/586 and https://github.com/phetsims/joist/issues/639 + scale: HomeScreenView.LAYOUT_BOUNDS.width / ScreenView.DEFAULT_LAYOUT_BOUNDS.width } ); // pdom - set label association so the title is read when focus enters the dialog