Skip to content

Commit

Permalink
changed usages of Math.round to Util.roundSymmetric, see phetsims/chi…
Browse files Browse the repository at this point in the history
  • Loading branch information
jbphet committed Jan 30, 2019
1 parent 3af725d commit a4e02e7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/common/view/table/MultiplicationTableNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ define( function( require ) {
var Rectangle = require( 'SCENERY/nodes/Rectangle' );
var ScreenView = require( 'JOIST/ScreenView' );
var Text = require( 'SCENERY/nodes/Text' );
var Util = require( 'DOT/Util' );
var Vector2 = require( 'DOT/Vector2' );

// constants
Expand Down Expand Up @@ -92,7 +93,9 @@ define( function( require ) {
// first cell is the multiplier operator, others are multipliers
if ( column === 0 ) {
cell = new MultiplicationTableHeaderCell( MathSymbols.TIMES, cellOptions, {
font: new PhetFont( { size: Math.round( cellOptions.height * 0.85 ) } ) // Equation empirically determined, makes font smaller for larger tables.

// specify font and size, equation empirically determined, makes font smaller for larger tables
font: new PhetFont( { size: Util.roundSymmetric( cellOptions.height * 0.85 ) } )
} );
}
else {
Expand Down

0 comments on commit a4e02e7

Please sign in to comment.