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:
Luca Zanolin
2011-09-30 01:01:35 -07:00
committed by Android (Google) Code Review

View File

@@ -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 &&