Bug 473440 - LTR edit box context menu appears LTR in RTL locales; r=dao,enndeakin

This commit is contained in:
Ehsan Akhgari 2009-01-14 20:26:33 +03:30
parent ded2619c3b
commit 1d74aff96d
4 changed files with 10 additions and 2 deletions

View File

@ -492,6 +492,8 @@
<content context="_child">
<children/>
<xul:menupopup anonid="input-box-contextmenu"
class="textbox-contextmenu"
chromedir="&locale.dir;"
onpopupshowing="if (document.commandDispatcher.focusedElement != this.parentNode.firstChild)
this.parentNode.firstChild.focus();
this.parentNode._doPopupItemEnabling(this);"
@ -553,6 +555,8 @@
<content context="_child">
<children/>
<xul:menupopup anonid="input-box-contextmenu"
class="textbox-contextmenu"
chromedir="&locale.dir;"
onpopupshowing="if (document.commandDispatcher.focusedElement != this.parentNode.firstChild)
this.parentNode.firstChild.focus();
this.parentNode._doPopupItemEnablingSpell(this);"

View File

@ -695,6 +695,10 @@ textbox[type="number"] {
-moz-binding: url("chrome://global/content/bindings/numberbox.xml#numberbox");
}
.textbox-contextmenu[chromedir="rtl"] {
direction: rtl;
}
/********** autocomplete textbox **********/
/* thunderbird and Nvu don't use the new toolkit's autocomplete widget yet.... */

View File

@ -74,7 +74,7 @@ html|*.textbox-textarea {
font: inherit;
}
.textbox-input-box menupopup {
.textbox-contextmenu {
cursor: default;
}

View File

@ -74,7 +74,7 @@ html|*.textbox-textarea {
font: inherit;
}
.textbox-input-box menupopup {
.textbox-contextmenu {
cursor: default;
}