rem: constrainWidth = Number(gDialog.widthInput.value.trimString()); constrainHeight = Number(gDialog.heightInput.value.trimString()); 
add: constrainWidth = Number(TrimString(gDialog.widthInput.value)); constrainHeight = Number(TrimString(gDialog.heightInput.value)); 
context: function ToggleConstrain(){  // If just turned on, save the current width and height as basis for constrain ratio  // Thus clicking on/off lets user say "Use these values as aspect ration"  if (gDialog.constrainCheckbox.checked && !gDialog.constrainCheckbox.disabled     && (gDialog.widthUnitsMenulist.selectedIndex == 0)     && (gDialog.heightUnitsMenulist.selectedIndex == 0))  {    constrainWidth = Number(gDialog.widthInput.value.trimString());    constrainHeight = Number(gDialog.heightInput.value.trimString());  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/52d7a93c75d49817060da61873d383063b3f87b0/EdImageProps.js/clean/editor/ui/dialogs/content/EdImageProps.js