Skip to content

Commit

Permalink
add maxWidth for ReferenceLineNode's NumberDisplay, #304
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Mar 21, 2023
1 parent 5295206 commit 72240a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/common/view/ReferenceLineNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ export default class ReferenceLineNode extends ScrubberNode {
} ),
useRichText: true,
textOptions: {
font: CalculusGrapherConstants.CONTROL_FONT
font: CalculusGrapherConstants.CONTROL_FONT,
maxWidth: 80 // see https://github.com/phetsims/calculus-grapher/issues/304
},
visibleProperty: CalculusGrapherPreferences.valuesVisibleProperty,
bottom: this.line.top - 5,
Expand Down

0 comments on commit 72240a6

Please sign in to comment.