mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
Bug 1073692 - Display each search suggestion row with the correct text direction on about:home/about:newtab. r=ehsan
This commit is contained in:
parent
48b37fddee
commit
ca42e49a6e
@ -301,6 +301,7 @@ SearchSuggestionUIController.prototype = {
|
|||||||
|
|
||||||
_makeTableRow: function (type, suggestionStr, currentRow, searchWords) {
|
_makeTableRow: function (type, suggestionStr, currentRow, searchWords) {
|
||||||
let row = document.createElementNS(HTML_NS, "tr");
|
let row = document.createElementNS(HTML_NS, "tr");
|
||||||
|
row.dir = "auto";
|
||||||
row.classList.add("searchSuggestionRow");
|
row.classList.add("searchSuggestionRow");
|
||||||
row.classList.add(type);
|
row.classList.add(type);
|
||||||
row.setAttribute("role", "presentation");
|
row.setAttribute("role", "presentation");
|
||||||
@ -365,7 +366,6 @@ SearchSuggestionUIController.prototype = {
|
|||||||
this._table = document.createElementNS(HTML_NS, "table");
|
this._table = document.createElementNS(HTML_NS, "table");
|
||||||
this._table.id = id;
|
this._table.id = id;
|
||||||
this._table.hidden = true;
|
this._table.hidden = true;
|
||||||
this._table.dir = "auto";
|
|
||||||
this._table.classList.add("searchSuggestionTable");
|
this._table.classList.add("searchSuggestionTable");
|
||||||
this._table.setAttribute("role", "listbox");
|
this._table.setAttribute("role", "listbox");
|
||||||
return this._table;
|
return this._table;
|
||||||
|
Loading…
Reference in New Issue
Block a user