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
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
this.setDropDownWidth(this.getLeft()+this.getRight());
this.setDropDownHorizontalOffset(-this.getLeft());
// increase width to include add button
this.setDropDownWidth(this.getRight());
}
}