зеркало из https://github.com/mozilla/gecko-dev.git
Bug 779930: RTL text handles don't flip over. [r=wesj, r=mfinkle]
--HG-- extra : rebase_source : acab202846e23d232749571be61862e317135cd8
This commit is contained in:
Родитель
5ddc0d7a14
Коммит
a982934db3
|
@ -1981,8 +1981,8 @@ var SelectionHandler = {
|
|||
updateCacheForSelection: function sh_updateCacheForSelection(aIsStartHandle) {
|
||||
let selection = this.getSelection();
|
||||
let rects = selection.getRangeAt(0).getClientRects();
|
||||
let start = { x: rects[0].left, y: rects[0].bottom };
|
||||
let end = { x: rects[rects.length - 1].right, y: rects[rects.length - 1].bottom };
|
||||
let start = { x: this._isRTL ? rects[0].right : rects[0].left, y: rects[0].bottom };
|
||||
let end = { x: this._isRTL ? rects[rects.length - 1].left : rects[rects.length - 1].right, y: rects[rects.length - 1].bottom };
|
||||
|
||||
let selectionReversed = false;
|
||||
if (this.cache.start) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче