Include only add button in dropdown width

This commit is contained in:
Dominik Schürmann
2016-04-29 21:50:54 +02:00
parent 3cc92e6f61
commit a242881da6

View File

@@ -186,7 +186,7 @@ public class EncryptKeyCompletionView extends TokenCompleteTextView<KeyItem>
@Override @Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
super.onMeasure(widthMeasureSpec, heightMeasureSpec); super.onMeasure(widthMeasureSpec, heightMeasureSpec);
this.setDropDownWidth(this.getLeft()+this.getRight()); // increase width to include add button
this.setDropDownHorizontalOffset(-this.getLeft()); this.setDropDownWidth(this.getRight());
} }
} }