Fix bug 2236111 - right edge of widget chopped-off while dragging

By using resolveSize, we're clamping the size we measure to the
size of the screen, so just use our prefered size instead.  Nobody
is going to otherwise limit us, so this value won't be mismatched
with the size we actually get.
This commit is contained in:
Joe Onorato
2009-11-04 13:48:32 -05:00
parent 90396672ba
commit eebd92496e

View File

@@ -84,9 +84,7 @@ public class DragView extends View implements TweenCallback {
@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
int widthSize = resolveSize(mBitmap.getWidth(), widthMeasureSpec);
int heightSize = resolveSize(mBitmap.getHeight(), heightMeasureSpec);
setMeasuredDimension(widthSize, heightSize);
setMeasuredDimension(mBitmap.getWidth(), mBitmap.getHeight());
}
@Override