aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/MoreSuggestions.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2011-09-25 19:27:13 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-09-25 19:27:13 -0700
commit8d0b67043456c5270f5b2742e47d31c55ca4fe3e (patch)
tree77e970ee74135d339f54ae9e27cfc42d6c806e7e /java/src/com/android/inputmethod/latin/MoreSuggestions.java
parent577d86d28ca9484315e7a8293824242c1362b483 (diff)
parentacf6b6815a0cd474ef480537c0391b6851364916 (diff)
downloadlatinime-8d0b67043456c5270f5b2742e47d31c55ca4fe3e.tar.gz
latinime-8d0b67043456c5270f5b2742e47d31c55ca4fe3e.tar.xz
latinime-8d0b67043456c5270f5b2742e47d31c55ca4fe3e.zip
am acf6b681: Merge "Fix keyboard row height calculation"
* commit 'acf6b6815a0cd474ef480537c0391b6851364916': Fix keyboard row height calculation
Diffstat (limited to 'java/src/com/android/inputmethod/latin/MoreSuggestions.java')
-rw-r--r--java/src/com/android/inputmethod/latin/MoreSuggestions.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/MoreSuggestions.java b/java/src/com/android/inputmethod/latin/MoreSuggestions.java
index 24011c41e..1afa07214 100644
--- a/java/src/com/android/inputmethod/latin/MoreSuggestions.java
+++ b/java/src/com/android/inputmethod/latin/MoreSuggestions.java
@@ -92,8 +92,9 @@ public class MoreSuggestions extends Keyboard {
}
mNumColumnsInRow[row] = pos - rowStartPos;
mNumRows = row + 1;
- mWidth = mOccupiedWidth = Math.max(minWidth, calcurateMaxRowWidth(fromPos, pos));
- mHeight = mOccupiedHeight = mNumRows * mDefaultRowHeight + mVerticalGap;
+ mBaseWidth = mOccupiedWidth = Math.max(
+ minWidth, calcurateMaxRowWidth(fromPos, pos));
+ mBaseHeight = mOccupiedHeight = mNumRows * mDefaultRowHeight + mVerticalGap;
return pos - fromPos;
}
@@ -149,7 +150,7 @@ public class MoreSuggestions extends Keyboard {
public int getWidth(int pos) {
final int numColumnInRow = getNumColumnInRow(pos);
- return (mWidth - mDividerWidth * (numColumnInRow - 1)) / numColumnInRow;
+ return (mOccupiedWidth - mDividerWidth * (numColumnInRow - 1)) / numColumnInRow;
}
public int getFlags(int pos) {