Fixed invalid display of handlers for R2L languages
[Title] Fixed invalid display of handlers for R2L languages
[Issue#] WEB-3433, WEB-3434
[Problem] Long press and extend the selection to multiple lines
then the first selected lies getting cleared
[Cause] Handles were drawn according to the selection rects. In all
cases the bottom left of 1st rect and bottom right of last rect
was used for drawing handlers. This is correct in case of L2R
languages as the base of selection will be at start of 1st rect
and extent at the end of last rect, but in case of R2L languages
the base is at the end of 1st rect and the extent is at the start
of the last rect
[Solution] Obtained the direction of selected text from
frameselection and depending on the selection direction if the
language is R2L draw the handlers at end of 1st rect and start
of the last rect.
Change-Id: I4528b7b5744e3db30cdae42d90f2201f326271d4
12 files changed: