rem:  SetElementEnabledByID( "constrainCheckbox", enable ); SetElementEnabledByID( "constrainLabel", enable ); 
add: var constrainEnable = enable && ( dialog.widthUnitsSelect.selectedIndex == 0 ) && ( dialog.heightUnitsSelect.selectedIndex == 0 ); SetElementEnabledByID( "constrainCheckbox", constrainEnable ); SetElementEnabledByID( "constrainLabel", constrainEnable ); 
context: function doDimensionEnabling( doEnable ){  // Enabled only if "Custom" is checked  var enable = (doEnable && dialog.customsizeRadio.checked);  SetElementEnabledByID( "widthInput", enable );  SetElementEnabledByID( "widthLabel", enable);  SetElementEnabledByID( "widthUnitsSelect", enable );  SetElementEnabledByID( "heightInput", enable );  SetElementEnabledByID( "heightLabel", enable );  SetElementEnabledByID( "heightUnitsSelect", enable );  SetElementEnabledByID( "constrainCheckbox", enable );  SetElementEnabledByID( "constrainLabel", enable );}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/35b5c18ff8fcf9b7174089542f06e8afcede63f2/EdImageProps.js/clean/editor/ui/dialogs/content/EdImageProps.js