am 77542988: Tune left and right padding of popup mini keyboard

Merge commit '77542988b809fba6a59aa86982eb4d9e4269477e' into gingerbread-plus-aosp

* commit '77542988b809fba6a59aa86982eb4d9e4269477e':
  Tune left and right padding of popup mini keyboard
diff --git a/java/res/layout/keyboard_popup.xml b/java/res/layout/keyboard_popup.xml
index 9a52e2c..27388e0 100644
--- a/java/res/layout/keyboard_popup.xml
+++ b/java/res/layout/keyboard_popup.xml
@@ -23,6 +23,8 @@
         android:layout_height="wrap_content"
         android:orientation="horizontal"
         android:background="@drawable/keyboard_popup_panel_background"
+        android:paddingLeft="16dip"
+        android:paddingRight="16dip"
         >
     <com.android.inputmethod.latin.LatinKeyboardBaseView
             xmlns:latin="http://schemas.android.com/apk/res/com.android.inputmethod.latin"
diff --git a/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java b/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java
index eeccb96..92266c5 100644
--- a/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java
+++ b/java/src/com/android/inputmethod/latin/LatinKeyboardBaseView.java
@@ -1129,7 +1129,7 @@
         if (isNumberAtLeftmost) {
             popupX -= container.getPaddingLeft();
         } else {
-            popupX += popupKey.width + getPaddingLeft();
+            popupX += popupKey.width + container.getPaddingLeft();
             popupX -= container.getMeasuredWidth();
             popupX += container.getPaddingRight();
         }