rem:  dialog.widthInput.value = InitPixelOrPercentCombobox(globalElement, "width", "widthUnitsSelect"); dialog.heightInput.value = InitPixelOrPercentCombobox(globalElement, "height", "heightUnitsSelect");     if ( dialog.widthInput.value.length && dialog.heightInput.value.length ) dialog.customsizeRadio.checked = true; else dialog.originalsizeRadio.checked = true; 
add: if ( SeeMore ) {  dialog.widthInput.value = InitPixelOrPercentCombobox(globalElement, "width", "widthUnitsSelect"); dialog.heightInput.value = InitPixelOrPercentCombobox(globalElement, "height", "heightUnitsSelect");     if ( dialog.widthInput.value.length && dialog.heightInput.value.length ) { dialog.isCustomSize = true; dialog.customsizeRadio.checked = true; } else { dialog.isCustomSize = false; dialog.originalsizeRadio.checked = true; } 
context: function InitDialog(){  // Set the controls to the image's attributes  str = globalElement.getAttribute("src");  if (str)    dialog.srcInput.value = str;    str = globalElement.getAttribute("alt");  if (str)    dialog.altTextInput.value = str;    // setup the height and width widgets  dialog.widthInput.value = InitPixelOrPercentCombobox(globalElement, "width", "widthUnitsSelect");  dialog.heightInput.value = InitPixelOrPercentCombobox(globalElement, "height", "heightUnitsSelect");    // TODO: We need to get the actual image dimensions.  //       If different from attribute dimensions, then "custom" is checked.  // For now, always check custom, so we don't trash existing values  if ( dialog.widthInput.value.length && dialog.heightInput.value.length )    dialog.customsizeRadio.checked = true;  else    dialog.originalsizeRadio.checked = true;  // set spacing editfields  dialog.imagelrInput.value = globalElement.getAttribute("hspace");  dialog.imagetbInput.value = globalElement.getAttribute("vspace");  dialog.border.value       = globalElement.getAttribute("border");      // Get alignment setting    var align = globalElement.getAttribute("align");  if (align) {    align.toLowerCase();dump("Image Align exists = "+align+"\n");  }dump("Image Align="+align+"\n");  switch ( align )  {    case "top":      dialog.alignTypeSelect.selectedIndex = 0;      break;    case "center":      dialog.alignTypeSelect.selectedIndex = 1;      break;    case "left":      dialog.alignTypeSelect.selectedIndex = 3;      break;    case "right":      dialog.alignTypeSelect.selectedIndex = 4;      break;    default:  // Default or "bottom"      dialog.alignTypeSelect.selectedIndex = 2;      break;  }dump( "Image Align Select Index after setting="+dialog.alignTypeSelect.selectedIndex+"\n");  imageTypeExtension = checkForImage();  // we want to force an update so initialize "wasEnableAll" to be the opposite of what the actual state is  wasEnableAll = !imageTypeExtension;  doOverallEnabling();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/945ea5d89a8a2025f6ec07aabd6bae0fb57b24a4/EdImageProps.js/clean/editor/ui/dialogs/content/EdImageProps.js