Bug 1286523 - fix HTML autocomplete overflow issue;r=bgrins
When the autocomplete popup has a scrollbar, the rightmost part
of the suggestions is hidden when using RTL locale.
XUL autocompletes (using the richlistbox) were always displaying the
suggestions using LTR. I couldn't find any CSS rule enforcing this, so
I assume this was a default behavior of the richlist box.
This patch restores the same behavior as before.
MozReview-Commit-ID: 9AcMxEe6tuL
--- a/devtools/client/themes/common.css
+++ b/devtools/client/themes/common.css
@@ -63,25 +63,23 @@
.devtools-autocomplete-listbox {
-moz-appearance: none !important;
background-color: transparent;
border-width: 0px !important;
margin: 0;
padding: 2px;
}
-.devtools-autocomplete-listbox > scrollbox {
- padding: 2px;
-}
-
.devtools-autocomplete-listbox .autocomplete-item {
width: 100%;
background-color: transparent;
border-radius: 4px;
padding: 1px 0;
+ /* Force text-align even in RTL locales to ensure a correct display of the popup */
+ text-align: left;
}
.devtools-autocomplete-listbox .autocomplete-selected {
background-color: rgba(0,0,0,0.2);
}
.devtools-autocomplete-listbox.dark-theme .autocomplete-selected,
.devtools-autocomplete-listbox.dark-theme .autocomplete-item:hover {