Skip to content

Commit

Permalink
update based on the textProperty, #725
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Jul 7, 2021
1 parent 80c2c76 commit 720b149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/NavigationBarScreenButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ class NavigationBarScreenButton extends Node {
text.text = name;
} );

text.boundsProperty.link( updateLayout );
text.textProperty.link( updateLayout );

needsIconMaxWidth && assert && assert( Utils.toFixed( this.width, 0 ) === Utils.toFixed( options.maxButtonWidth, 0 ),
`this.width ${this.width} !== options.maxButtonWidth ${options.maxButtonWidth}` );
Expand Down

0 comments on commit 720b149

Please sign in to comment.