From a4e02e76c090aa233a6efe653b5ad333e2c8328c Mon Sep 17 00:00:00 2001 From: jbphet Date: Wed, 30 Jan 2019 13:20:22 -0700 Subject: [PATCH] changed usages of Math.round to Util.roundSymmetric, see https://github.com/phetsims/chipper/issues/736 --- js/common/view/table/MultiplicationTableNode.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/common/view/table/MultiplicationTableNode.js b/js/common/view/table/MultiplicationTableNode.js index c80d2864..c3651aad 100644 --- a/js/common/view/table/MultiplicationTableNode.js +++ b/js/common/view/table/MultiplicationTableNode.js @@ -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 @@ -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 {