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 (!constrainWidth || !constrainHeight ||  if (!actualWidth || !actualHeight ||      !(dialog.constrainCheckbox.checked && !dialog.constrainCheckbox.disabled))    return;  // double-check that neither width nor height is in percent mode; bail if so!  if ( (dialog.widthUnitsMenulist.selectedIndex != 0)     || (dialog.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 * constrainHeight / constrainWidth );  else    destElement.value = Math.round( srcElement.value * constrainWidth / constrainHeight );*/}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6f169fbb60610b5cb36fe3631feae43e45cc3c1b/EdImageProps.js/buggy/editor/ui/dialogs/content/EdImageProps.js