rem: if (!actualWidth || !actualHeight || 
add: if (!gActualWidth || !gActualHeight || 
context: function constrainProportions( srcID, destID ){  var srcElement = document.getElementById(srcID);  if (!srcElement)    return;  var destElement = document.getElementById(destID);  if (!destElement)    return;  // always force an integer (whether we are constraining or not)  forceInteger(srcID);  if (!actualWidth || !actualHeight ||      !(gDialog.constrainCheckbox.checked && !gDialog.constrainCheckbox.disabled))    return;  // double-check that neither width nor height is in percent mode; bail if so!  if ( (gDialog.widthUnitsMenulist.selectedIndex != 0)     || (gDialog.heightUnitsMenulist.selectedIndex != 0) )    return;  // This always uses the actual width and height ratios  // which is kind of funky if you change one number without the constrain  // and then turn constrain on and change a number  // I prefer the old strategy (below) but I can see some merit to this solution  if (srcID == "widthInput")    destElement.value = Math.round( srcElement.value * actualHeight / actualWidth );  else    destElement.value = Math.round( srcElement.value * actualWidth / actualHeight );/*  // With this strategy, the width and height ratio  //   can be reset to whatever the user entered.  if (srcID == "widthInput")    destElement.value = Math.round( srcElement.value * gConstrainHeight / gConstrainWidth );  else    destElement.value = Math.round( srcElement.value * gConstrainWidth / gConstrainHeight );*/}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6ff254ec3a2c3d4e6e690535f65f89a007c66b98/EdImageOverlay.js/buggy/editor/ui/dialogs/content/EdImageOverlay.js