rem: dialog.CellVAlignSelect.selectedIndex = 0; 
add: dialog.CellVAlignList.selectedIndex = 0; 
context: function InitDialog(){  // Get Table attributes  dialog.TableRowsInput.value = rowCount;  dialog.TableColumnsInput.value = colCount;  dialog.TableHeightInput.value = InitPixelOrPercentMenulist(globalTableElement, TableElement, "height", "TableHeightUnits");  dialog.TableWidthInput.value = InitPixelOrPercentMenulist(globalTableElement, TableElement, "width", "TableWidthUnits");  dialog.BorderWidthInput.value = globalTableElement.border;  dialog.SpacingInput.value = globalTableElement.cellSpacing;  dialog.PaddingInput.value = globalTableElement.cellPadding;  //BUG: The align strings are converted: e.g., "center" becomes "Center";  var halign = globalTableElement.align.toLowerCase();  if (halign == centerStr)    dialog.TableAlignSelect.selectedIndex = 1;  else if (halign == bottomStr)    dialog.TableAlignSelect.selectedIndex = 2;  else // Default = left    dialog.TableAlignSelect.selectedIndex = 0;    captionElement = globalTableElement.caption;dump("Caption Element = "+captionElement+"\n");  var index = 0;  if (captionElement)  {    if(captionElement.vAlign == "top")      index = 1;    else      index = 2;  }  dialog.CaptionSelect.selectedIndex = index;    if (globalTableElement.background)    dialog.TableImageInput.value = globalTableElement.background;    SetColor("tableBackgroundCW", globalTableElement.bgColor);   // Get cell attributes  if (globalCellElement)  {    // Test if entire rows or columns are selected and set menu appropriately    var SelectionType = editorShell.GetSelectedCellsType(TableElement);    dump("SelectionList.selectedIndex = "+dialog.SelectionList.selectedIndex+"\n");    switch (SelectionType)    {      case 2:        dialog.SelectionList.selectedItem = dialog.SelectRowItem;        break;      case 3:        dialog.SelectionList.selectedItem = dialog.SelectColumnItem;        break;      default:        dialog.SelectionList.selectedItem = dialog.SelectCellItem;        break;    }    dialog.CellHeightInput.value = InitPixelOrPercentMenulist(globalCellElement, CellElement, "height", "CellHeightUnits");    dialog.CellWidthInput.value = InitPixelOrPercentMenulist(globalCellElement, CellElement, "width", "CellWidthUnits");//BUG: We don't support "rowSpan" or "colSpan" JS attributes?dump("RowSpan="+globalCellElement.rowSpan+" ColSpan="+globalCellElement.colSpan+"\n");    dialog.RowSpanInput.value = globalCellElement.getAttribute("rowspan");    dialog.ColSpanInput.value = globalCellElement.getAttribute("colspan");        var valign = globalCellElement.vAlign.toLowerCase();    if (valign == topStr)      dialog.CellVAlignSelect.selectedIndex = 0;    else if (valign == bottomStr)      dialog.CellVAlignSelect.selectedIndex = 2;    else // Default = middle      dialog.CellVAlignSelect.selectedIndex = 1;        var halign = globalCellElement.align.toLowerCase();    switch (halign)    {      case centerStr:        dialog.CellHAlignSelect.selectedIndex = 1;        break;      case rightStr:        dialog.CellHAlignSelect.selectedIndex = 2;        break;      case justifyStr:        dialog.CellHAlignSelect.selectedIndex = 3;        break;      case charStr:        var alignChar = globalCellElement.getAttribute(charStr);        if (alignChar && alignChar.length == 1)        {          dialog.CellAlignCharInput.value = alignChar;          dialog.CellHAlignSelect.selectedIndex = 4;        } else {          // "char" align set but no alignment char value          dialog.CellHAlignSelect.selectedIndex = 0;        }        break;      default:  // left        dialog.CellHAlignSelect.selectedIndex = 0;        break;    }    // Show/hide extra message to explain "default" case    SelectCellHAlign();    CellIsHeader = (globalCellElement.nodeName == "TH");    dialog.HeaderCheck.checked = CellIsHeader;    dialog.NoWrapCheck.checked = globalCellElement.noWrap;        SetColor("cellBackgroundCW", globalCellElement.bgColor);         if (globalCellElement.background)      dialog.CellImageInput.value = globalCellElement.background;  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/79313083a5c8e1f1dcbd993236abae392fc4554e/EdTableProps.js/clean/editor/ui/dialogs/content/EdTableProps.js