Bug 744982 - Decide whether GCLI in the global toolbar should be fixed direction:ltr or not; r=robcee,ehsan

This commit is contained in:
Joe Walker 2012-06-01 08:24:19 +01:00
parent 7e2b7ca01e
commit 76bdc5a493
2 changed files with 9 additions and 1 deletions

View File

@ -8082,7 +8082,7 @@ define("text!gcli/commands/help_list.html", [], "\n" +
" <tr foreach=\"command in ${getMatchingCommands()}\"\n" +
" onclick=\"${onclick}\" ondblclick=\"${ondblclick}\">\n" +
" <th class=\"gcli-help-name\">${command.name}</th>\n" +
" <td class=\"gcli-help-arrow\">&#x2192;</td>\n" +
" <td class=\"gcli-help-arrow\">-</td>\n" +
" <td>\n" +
" ${command.description}\n" +
" <span class=\"gcli-out-shortcut\" data-command=\"help ${command.name}\">help ${command.name}</span>\n" +

View File

@ -327,6 +327,10 @@ OutputPanel.prototype._onload = function OP_onload()
this._div.classList.add('gcli-row-out');
this._div.setAttribute('aria-live', 'assertive');
let styles = this._toolbar.ownerDocument.defaultView
.getComputedStyle(this._toolbar);
this._div.setAttribute("dir", styles.direction);
this.loaded = true;
if (this._loadCallback) {
this._loadCallback();
@ -501,6 +505,10 @@ TooltipPanel.prototype._onload = function TP_onload()
this.hintElement = this.document.getElementById("gcli-tooltip-root");
this._connector = this.document.getElementById("gcli-tooltip-connector");
let styles = this._toolbar.ownerDocument.defaultView
.getComputedStyle(this._toolbar);
this.hintElement.setAttribute("dir", styles.direction);
this.loaded = true;
if (this._loadCallback) {