JakeWharton/ViewPagerIndicator

TitlePageIndicator the method clipViewOnTheLeft() may be have some wrong

Opened this issue · 0 comments

private void clipViewOnTheLeft(Rect curViewBound, float curViewWidth, int left) {
    curViewBound.left = (int) (left + mClipPadding);
    curViewBound.right = (int) (mClipPadding + curViewWidth);
}

the correct value is such that :
curViewBound.right = (int) (curViewbound.left + curViewWidth);

if the indicator's layout_width is not the "math_parent" ,is will have some wrong