Skip to content

Commit

Permalink
Merge pull request rengwuxian#279 from sushant23/paddingfix
Browse files Browse the repository at this point in the history
fixed padding issue as mentioned in https://github.com/rengwuxian/Mat…
  • Loading branch information
rengwuxian committed Mar 29, 2016
2 parents 7e0e045 + eeaec2c commit f6e9fa4
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 f6e9fa4

Please sign in to comment.