mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +00:00
Fixing small bug in widget resizing
Change-Id: I7bba5d09aa92437c81e1730758710c1132e26dde
This commit is contained in:
@@ -291,8 +291,8 @@ public class AppWidgetResizeFrame extends FrameLayout {
|
||||
|
||||
public void snapToWidget(boolean animate) {
|
||||
final DragLayer.LayoutParams lp = (DragLayer.LayoutParams) getLayoutParams();
|
||||
int xOffset = mCellLayout.getLeft() - mWorkspace.getScrollX();
|
||||
int yOffset = mCellLayout.getTop() - mWorkspace.getScrollY();
|
||||
int xOffset = mCellLayout.getLeft() + mCellLayout.getLeftPadding() - mWorkspace.getScrollX();
|
||||
int yOffset = mCellLayout.getTop() + mCellLayout.getTopPadding() - mWorkspace.getScrollY();
|
||||
|
||||
int newWidth = mWidgetView.getWidth() + 2 * mBackgroundPadding;
|
||||
int newHeight = mWidgetView.getHeight() + 2 * mBackgroundPadding;
|
||||
|
||||
Reference in New Issue
Block a user