Skip to content

Commit

Permalink
fix delete button cannot delete extra long string rengwuxian#376
Browse files Browse the repository at this point in the history
  • Loading branch information
sain.wu committed Nov 19, 2018
1 parent f6e9fa4 commit 4cc2347
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1277,7 +1277,7 @@ private ObjectAnimator getBottomLinesAnimator(float destBottomLines) {
protected void onDraw(@NonNull Canvas canvas) {

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

// draw the icon(s)
Expand Down Expand Up @@ -1509,8 +1509,8 @@ public boolean onTouchEvent(MotionEvent event) {
private boolean insideClearButton(MotionEvent event) {
float x = event.getX();
float y = event.getY();
int startX = getScrollX() + (iconLeftBitmaps == null ? 0 : (iconOuterWidth + iconPadding));
int endX = getScrollX() + (iconRightBitmaps == null ? getWidth() : getWidth() - iconOuterWidth - iconPadding);
int startX = (iconLeftBitmaps == null ? 0 : (iconOuterWidth + iconPadding));
int endX = (iconRightBitmaps == null ? getWidth() : getWidth() - iconOuterWidth - iconPadding);
int buttonLeft;
if (isRTL()) {
buttonLeft = startX;
Expand Down

0 comments on commit 4cc2347

Please sign in to comment.