From 7d518ed4f4067e7e6910adf491edba3aa05ac13e Mon Sep 17 00:00:00 2001 From: zepumph Date: Tue, 15 Aug 2017 14:35:47 -0800 Subject: [PATCH] add default options, https://github.com/phetsims/joist/issues/435 --- js/CreditsNode.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/CreditsNode.js b/js/CreditsNode.js index cd6c7f9c..ac050b0b 100644 --- a/js/CreditsNode.js +++ b/js/CreditsNode.js @@ -39,6 +39,11 @@ define( function( require ) { * @constructor */ function CreditsNode( credits, options ) { + + options = _.extend( { + maxWidth: 550 + }, options ); + var titleFont = new PhetFont( { size: 14, weight: 'bold' } ); var font = new PhetFont( 12 ); var multiLineTextOptions = { font: font, align: 'left', lineWrap: options.maxWidth };