From 70ff89a6469ce14993f0f012992701cc3ea715e2 Mon Sep 17 00:00:00 2001 From: Aadish Gupta Date: Fri, 23 Sep 2016 11:33:59 -0600 Subject: [PATCH] removing space with percentage sign and adding space for amu , see issue #78 --- js/mix-isotopes/view/AverageAtomicMassIndicator.js | 2 +- js/mix-isotopes/view/IsotopeProportionsPieChart.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/mix-isotopes/view/AverageAtomicMassIndicator.js b/js/mix-isotopes/view/AverageAtomicMassIndicator.js index 2d0d21e..6613a32 100644 --- a/js/mix-isotopes/view/AverageAtomicMassIndicator.js +++ b/js/mix-isotopes/view/AverageAtomicMassIndicator.js @@ -119,7 +119,7 @@ define( function( require ) { } else { weight = averageAtomicMass; } - readoutText.setText( Util.toFixed( weight, NUMBER_DECIMALS ) + amuString ); + readoutText.setText( Util.toFixed( weight, NUMBER_DECIMALS ) + ' ' + amuString ); readoutText.centerX = SIZE.width / 2; } diff --git a/js/mix-isotopes/view/IsotopeProportionsPieChart.js b/js/mix-isotopes/view/IsotopeProportionsPieChart.js index 58e3608..632cbd4 100644 --- a/js/mix-isotopes/view/IsotopeProportionsPieChart.js +++ b/js/mix-isotopes/view/IsotopeProportionsPieChart.js @@ -87,7 +87,7 @@ define( function( require ) { var symbol = chemSymbolWithNumbersNode( isotopeConfig ); node.addChild( symbol ); - var readoutText = new Text( Util.toFixedNumber( isotopePercentage, numberOfDecimals ) + ' %', { + var readoutText = new Text( Util.toFixedNumber( isotopePercentage, numberOfDecimals ) + '%', { font: READOUT_FONT, maxWidth: 0.9 * SIZE.width, maxHeight: 0.9 * SIZE.height