mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-24 11:27:49 +00:00
Fixed Cell Properties navigation in dialog bug 68836. r=brade, sr=sfraser
This commit is contained in:
parent
eef80efee2
commit
4b89987d97
@ -229,10 +229,13 @@ function Startup()
|
||||
colCount = editorShell.GetTableColumnCount(TableElement);
|
||||
lastColIndex = colCount-1;
|
||||
|
||||
// If only one cell, disable change-selection widgets
|
||||
// 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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user