Merge change 25640 into eclair

* changes:
  Make the EditText error popup correctly resize when the view resizes.
This commit is contained in:
Android (Google) Code Review
2009-09-17 20:14:37 -04:00

View File

@@ -3408,7 +3408,8 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
if (mPopup != null) { if (mPopup != null) {
TextView tv = (TextView) mPopup.getContentView(); TextView tv = (TextView) mPopup.getContentView();
chooseSize(mPopup, mError, tv); chooseSize(mPopup, mError, tv);
mPopup.update(this, getErrorX(), getErrorY(), -1, -1); mPopup.update(this, getErrorX(), getErrorY(),
mPopup.getWidth(), mPopup.getHeight());
} }
restartMarqueeIfNeeded(); restartMarqueeIfNeeded();