mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
Bug 187455 Table properties dialog doesn't support left or right caption side r=brade sr=sfraser
This commit is contained in:
parent
6d048dee59
commit
5670060205
@ -311,12 +311,10 @@ function InitDialog()
|
||||
gTableCaptionElement = gTableElement.caption;
|
||||
if (gTableCaptionElement)
|
||||
{
|
||||
// Note: Other possible values are "left" and "right",
|
||||
// but "align" is deprecated, so should we even support "botton"?
|
||||
if (GetHTMLOrCSSStyleValue(gTableCaptionElement, "align", "caption-side") == "bottom")
|
||||
gDialog.TableCaptionList.value = "bottom";
|
||||
else
|
||||
gDialog.TableCaptionList.value = "top";
|
||||
var align = GetHTMLOrCSSStyleValue(gTableCaptionElement, "align", "caption-side");
|
||||
if (align != "bottom" && align != "left" && align != "right")
|
||||
align = "top";
|
||||
gDialog.TableCaptionList.value = align;
|
||||
}
|
||||
|
||||
gTableColor = GetHTMLOrCSSStyleValue(globalTableElement, bgcolor, cssBackgroundColorStr);
|
||||
|
@ -131,6 +131,8 @@
|
||||
<menuitem label="&tableCaptionNone.label;" value=""/>
|
||||
<menuitem label="&tableCaptionAbove.label;" value="top"/>
|
||||
<menuitem label="&tableCaptionBelow.label;" value="bottom"/>
|
||||
<menuitem label="&tableCaptionLeft.label;" value="left"/>
|
||||
<menuitem label="&tableCaptionRight.label;" value="right"/>
|
||||
</menupopup>
|
||||
</menulist>
|
||||
</hbox>
|
||||
|
@ -46,6 +46,8 @@
|
||||
<!ENTITY tableCaption.accessKey "N">
|
||||
<!ENTITY tableCaptionAbove.label "Above Table">
|
||||
<!ENTITY tableCaptionBelow.label "Below Table">
|
||||
<!ENTITY tableCaptionLeft.label "Left of Table">
|
||||
<!ENTITY tableCaptionRight.label "Right of table">
|
||||
<!ENTITY tableCaptionNone.label "None">
|
||||
<!ENTITY tableInheritColor.label "(Let page color show through)">
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user