mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user