mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 744982 - Decide whether GCLI in the global toolbar should be fixed direction:ltr or not; r=robcee,ehsan
This commit is contained in:
parent
7e2b7ca01e
commit
76bdc5a493
@ -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\">→</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" +
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user