From 80bfe3d225534be9e09771ae31d617a08692d26e Mon Sep 17 00:00:00 2001 From: "glazman%netscape.com" Date: Fri, 18 Jan 2002 10:08:12 +0000 Subject: [PATCH] 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 --- editor/ui/dialogs/content/EdHLineProps.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/ui/dialogs/content/EdHLineProps.js b/editor/ui/dialogs/content/EdHLineProps.js index 91d452632756..66a4f10b5c08 100644 --- a/editor/ui/dialogs/content/EdHLineProps.js +++ b/editor/ui/dialogs/content/EdHLineProps.js @@ -89,9 +89,9 @@ function InitDialog() var marginLeft = GetHTMLOrCSSStyleValue(globalElement, "align", "margin-left").toLowerCase(); var marginRight = GetHTMLOrCSSStyleValue(globalElement, "align", "margin-right").toLowerCase(); 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.leftAlign.checked = (align == "left left" || align == "0px auto" || align == " "); if (gDialog.centerAlign.checked) { gDialog.alignGroup.selectedItem = gDialog.centerAlign;