Skip to content

Commit

Permalink
fixed padding issue as mentioned in rengwuxian#159
Browse files Browse the repository at this point in the history
  • Loading branch information
Sushant Devkota authored and Sushant Devkota committed Mar 28, 2016
1 parent 7e0e045 commit eeaec2c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1275,8 +1275,9 @@ private ObjectAnimator getBottomLinesAnimator(float destBottomLines) {

@Override
protected void onDraw(@NonNull Canvas canvas) {
int startX = getScrollX() + (iconLeftBitmaps == null ? 0 : (iconOuterWidth + iconPadding));
int endX = getScrollX() + (iconRightBitmaps == null ? getWidth() : getWidth() - iconOuterWidth - iconPadding);

int startX = getScrollX() + (iconLeftBitmaps == null ? 0 : (iconOuterWidth + iconPadding)) + getPaddingLeft();
int endX = getScrollX() + (iconRightBitmaps == null ? getWidth() : getWidth() - iconOuterWidth - iconPadding) - getPaddingRight();
int lineStartY = getScrollY() + getHeight() - getPaddingBottom();

// draw the icon(s)
Expand Down

0 comments on commit eeaec2c

Please sign in to comment.