Skip to content

Commit

Permalink
update max width for all KeyboardHelpDialogs (HelpContent); remove ve…
Browse files Browse the repository at this point in the history
…rticalIconSpacing, HelpContent.labelWithIcon.labelFirst; see phetsims/friction#158
  • Loading branch information
zepumph committed Jan 23, 2019
1 parent 887b539 commit 6c0fdb2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/KeyboardHelpDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ define( function( require ) {
} );

// a line to say "tab to get started" below the "Keyboard Shortcuts" 'title'
var tabHintText = new Text( keyboardShortcutsToGetStartedString, { font: HelpContent.DEFAULT_LABEL_FONT } );
var tabHintText = new Text( keyboardShortcutsToGetStartedString, {
font: HelpContent.DEFAULT_LABEL_FONT,
maxWidth: HelpContent.DEFAULT_TEXT_MAX_WIDTH
} );
var tabHintLine = HelpContent.labelWithIcon( tabHintText, new TabKeyNode(), tabToGetStartedString, {
iconOptions: {
tagName: 'p' // because there is only one, and the default is an li tag
Expand Down

0 comments on commit 6c0fdb2

Please sign in to comment.