Fixed Cell Properties navigation in dialog bug 68836. r=brade, sr=sfraser

This commit is contained in:
cmanske%netscape.com 2001-02-16 03:37:26 +00:00
Родитель eef80efee2
Коммит 4b89987d97
1 изменённых файлов: 9 добавлений и 6 удалений

Просмотреть файл

@ -228,11 +228,14 @@ function Startup()
lastRowIndex = rowCount-1;
colCount = editorShell.GetTableColumnCount(TableElement);
lastColIndex = colCount-1;
// If only one cell, disable change-selection widgets
dialog.SelectionList.setAttribute("disabled", "true");
dialog.PreviousButton.setAttribute("disabled", "true");
dialog.NextButton.setAttribute("disabled", "true");
// If only one cell in table, disable change-selection widgets
if (rowCount == 1 && colCount == 1)
{
dialog.SelectionList.setAttribute("disabled", "true");
dialog.PreviousButton.setAttribute("disabled", "true");
dialog.NextButton.setAttribute("disabled", "true");
}
// User can change these via textfields
newRowCount = rowCount;
@ -305,7 +308,7 @@ function InitCellPanel()
dialog.SelectionList.selectedIndex = SelectedCellsType-1;
var previousValue = dialog.CellHeightInput.value;
dialog.CellHeightInput.value = InitPixelOrPercentMenulist(globalCellElement, CellElement, "height", "CellHeightUnits", gPercent);
dialog.CellHeightInput.value = InitPixelOrPercentMenulist(globalCellElement, CellElement, "height", "CellHeightUnits", gPixel);
dialog.CellHeightCheckbox.checked = AdvancedEditUsed && previousValue != dialog.CellHeightInput.value;
previousValue= dialog.CellWidthInput.value;