context: function constrainProportions( srcID, destID ){  // Return if we don't have proper data or checkbox isn't checked and enabled//  if (!constrainWidth || !constrainHeight ||  if (!actualWidth || !actualHeight ||      !(dialog.constrainCheckbox.checked && !dialog.constrainCheckbox.disabled))    return;    var srcElement = document.getElementById ( srcID );  if ( !srcElement )    return;    var destElement = document.getElementById( destID );  if ( !destElement )    return;  forceInteger( srcID );  // This always uses the actual width and height ratios  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/aa5380476fc995c777e7136289faece5045964a3/EdImageProps.js/buggy/editor/ui/dialogs/content/EdImageProps.js