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 617067e78e
commit 6fc3afe437

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;