Skip to content

Commit

Permalink
add default options, #435
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Aug 15, 2017
1 parent ef09ca4 commit 7d518ed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/CreditsNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down

0 comments on commit 7d518ed

Please sign in to comment.