Skip to content

Commit

Permalink
i18n fix for game guesses with undefined slope, #117
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Feb 12, 2019
1 parent 3c4554f commit b559803
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions js/pointslope/view/PointSlopeEquationNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,7 @@ define( function( require ) {
x1Node = new DynamicValueNode( x1Property, _.extend( { absoluteValue: true }, staticOptions ) );
}
var xRightParenNode = new Text( ')', staticOptions );
var slopeUndefinedNode = new RichText( '?', _.extend( {}, staticOptions, {
maxWidth: options.maxWidth // see #114
} ) );
var slopeUndefinedNode = new RichText( '?', staticOptions );

// add all nodes, we'll set which ones are visible bases on desired simplification
self.children = [
Expand Down
4 changes: 1 addition & 3 deletions js/slopeintercept/view/SlopeInterceptEquationNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,7 @@ define( function( require ) {
}
var yInterceptDenominatorNode = new DynamicValueNode( yInterceptDenominatorProperty, _.extend( { absoluteValue: true }, staticOptions ) );
var yInterceptFractionLineNode = new scenery.Line( 0, 0, maxSlopePickerWidth, 0, fractionLineOptions );
var slopeUndefinedNode = new RichText( '?', _.extend( {}, staticOptions, {
maxWidth: options.maxWidth // see #114
} ) );
var slopeUndefinedNode = new RichText( '?', staticOptions );

// add all nodes, we'll set which ones are visible bases on desired simplification
self.children = [ yNode, equalsNode, slopeMinusSignNode, riseNode, runNode, slopeFractionLineNode, xNode, plusNode, minusNode,
Expand Down

0 comments on commit b559803

Please sign in to comment.