Merge "The x and y position of the pop-up where not calculated correctly when the text view had internal scrolling."
This commit is contained in:
@@ -9480,8 +9480,8 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
|
||||
return false;
|
||||
}
|
||||
|
||||
int posX = mPositionX + positionX;
|
||||
int posY = mPositionY + positionY;
|
||||
int posX = mPositionX + positionX - getScrollX();
|
||||
int posY = mPositionY + positionY - getScrollY();
|
||||
|
||||
// Offset by 1 to take into account 0.5 and int rounding around getPrimaryHorizontal.
|
||||
return posX >= clip.left - 1 && posX <= clip.right + 1 &&
|
||||
|
||||
Reference in New Issue
Block a user