Bug 1194842 - Fix the width calculation of the textbox for editable XUL tree cells in RTL mode; r=jaws

This commit is contained in:
Ehsan Akhgari 2015-09-04 13:34:10 -04:00
parent 26ff686dbd
commit a970d4ebe1

View File

@ -370,7 +370,7 @@
var left, widthdiff;
if (style.direction == "rtl") {
left = cellRect.x;
widthdiff = cellRect.x + cellRect.width - textRect.x - textRect.width;
widthdiff = cellRect.x - textRect.x;
} else {
left = textRect.x;
widthdiff = textRect.x - cellRect.x;