horizontal line properties window does not show that line is centered; fix done by neil@parkwaycc.co.uk; b=120120, r=glazman, sr=kin, a=blizzard

This commit is contained in:
glazman%netscape.com 2002-01-18 10:08:12 +00:00
Родитель 9260b0b35e
Коммит e3d4b000f6
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -89,9 +89,9 @@ function InitDialog()
var marginLeft = GetHTMLOrCSSStyleValue(globalElement, "align", "margin-left").toLowerCase(); var marginLeft = GetHTMLOrCSSStyleValue(globalElement, "align", "margin-left").toLowerCase();
var marginRight = GetHTMLOrCSSStyleValue(globalElement, "align", "margin-right").toLowerCase(); var marginRight = GetHTMLOrCSSStyleValue(globalElement, "align", "margin-right").toLowerCase();
align = marginLeft + " " + marginRight; align = marginLeft + " " + marginRight;
gDialog.centerAlign.checked = (align == "center center" || align == "auto auto"); gDialog.leftAlign.checked = (align == "left left" || align == "0px auto");
gDialog.centerAlign.checked = (align == "center center" || align == "auto auto" || align == " ");
gDialog.rightAlign.checked = (align == "right right" || align == "auto 0px"); gDialog.rightAlign.checked = (align == "right right" || align == "auto 0px");
gDialog.leftAlign.checked = (align == "left left" || align == "0px auto" || align == " ");
if (gDialog.centerAlign.checked) { if (gDialog.centerAlign.checked) {
gDialog.alignGroup.selectedItem = gDialog.centerAlign; gDialog.alignGroup.selectedItem = gDialog.centerAlign;