summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2011-05-04 11:28:13 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-05-04 11:28:13 -0700
commite74d514cfef4fec5aa06e0af766f53ea2c7383b6 (patch)
treec3bb4f4e9b54250827d9fb46f6d4b4ce52d24317 /src/com/android
parent3130ec86721d7e492b1954875a8e375eed235473 (diff)
parent1c4b6efb18ee841e8c83e9e60a171caac9051e04 (diff)
downloadandroid_packages_apps_Trebuchet-e74d514cfef4fec5aa06e0af766f53ea2c7383b6.tar.gz
android_packages_apps_Trebuchet-e74d514cfef4fec5aa06e0af766f53ea2c7383b6.tar.bz2
android_packages_apps_Trebuchet-e74d514cfef4fec5aa06e0af766f53ea2c7383b6.zip
Merge "Fixing small bug in widget resizing"
Diffstat (limited to 'src/com/android')
-rw-r--r--src/com/android/launcher2/AppWidgetResizeFrame.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher2/AppWidgetResizeFrame.java b/src/com/android/launcher2/AppWidgetResizeFrame.java
index d975ed931..4390c595e 100644
--- a/src/com/android/launcher2/AppWidgetResizeFrame.java
+++ b/src/com/android/launcher2/AppWidgetResizeFrame.java
@@ -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;