rem: var valign = globalCellElement.vAlign.toLowerCase(); 
add: var valign = GetHTMLOrCSSStyleValue(globalCellElement, "valign", "vertical-align").toLowerCase(); 
context: function InitCellPanel(){  // Get cell attributes  if (globalCellElement)  {    // This assumes order of items is Cell, Row, Column    gDialog.SelectionList.selectedIndex = SelectedCellsType-1;    var previousValue = gDialog.CellHeightInput.value;    gDialog.CellHeightInput.value = InitPixelOrPercentMenulist(globalCellElement, CellElement, "height", "CellHeightUnits", gPixel);    gDialog.CellHeightCheckbox.checked = AdvancedEditUsed && previousValue != gDialog.CellHeightInput.value;    previousValue= gDialog.CellWidthInput.value;    gDialog.CellWidthInput.value = InitPixelOrPercentMenulist(globalCellElement, CellElement, "width", "CellWidthUnits", gPixel);    gDialog.CellWidthCheckbox.checked = AdvancedEditUsed && previousValue != gDialog.CellWidthInput.value;    var previousIndex = gDialog.CellVAlignList.selectedIndex;    var valign = globalCellElement.vAlign.toLowerCase();    if (valign == topStr)      gDialog.CellVAlignList.selectedIndex = 0;    else if (valign == bottomStr)      gDialog.CellVAlignList.selectedIndex = 2;    else // Default = middle      gDialog.CellVAlignList.selectedIndex = 1;    gDialog.CellVAlignCheckbox.checked = AdvancedEditUsed && previousValue != gDialog.CellVAlignList.selectedIndex;    previousIndex = gDialog.CellHAlignList.selectedIndex;    alignWasChar = false;    var halign = GetHTMLOrCSSStyleValue(globalCellElement, "align", "text-align").toLowerCase();    switch (halign)    {      case centerStr:        gDialog.CellHAlignList.selectedIndex = 1;        break;      case rightStr:        gDialog.CellHAlignList.selectedIndex = 2;        break;      case justifyStr:        gDialog.CellHAlignList.selectedIndex = 3;        break;      case charStr:        // We don't support UI for this because layout doesn't work: bug 2212.        // Remember that's what they had so we don't change it        //  unless they change the alignment by using the menulist        alignWasChar = true;        // Fall through to use show default alignment in menu      default:        // Default depends on cell type (TH is "center", TD is "left")        gDialog.CellHAlignList.selectedIndex =          (globalCellElement.nodeName.toLowerCase() == "th") ? 1 : 0;        break;    }    gDialog.CellHAlignCheckbox.checked = AdvancedEditUsed &&      previousIndex != gDialog.CellHAlignList.selectedIndex;    previousIndex = gDialog.CellStyleList.selectedIndex;    gDialog.CellStyleList.selectedIndex = (globalCellElement.nodeName.toLowerCase() == "th") ? 1 : 0;    gDialog.CellStyleCheckbox.checked = AdvancedEditUsed && previousIndex != gDialog.CellStyleList.selectedIndex;    previousIndex = gDialog.TextWrapList.selectedIndex;    if (GetHTMLOrCSSStyleValue(globalCellElement, "nowrap", "white-space") == "nowrap")      gDialog.TextWrapList.selectedIndex = 1;    else      gDialog.TextWrapList.selectedIndex = 0;    gDialog.TextWrapCheckbox.checked = AdvancedEditUsed && previousIndex != gDialog.TextWrapList.selectedIndex;    previousValue = CellColor;    CellColor = GetHTMLOrCSSStyleValue(globalCellElement, bgcolor, cssBackgroundColorStr);    CellColor = ConvertRGBColorIntoHEXColor(CellColor);    SetColor("cellBackgroundCW", CellColor);    gDialog.CellColorCheckbox.checked = AdvancedEditUsed && previousValue != CellColor;    // We want to set this true in case changes came    //   from Advanced Edit dialog session (must assume something changed)    CellDataChanged = true;  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/e03e047dcf2d433cf8a3fd1eef00ed0ebcd6a62c/EdTableProps.js/buggy/editor/ui/dialogs/content/EdTableProps.js