Include only add button in dropdown width
This commit is contained in:
@@ -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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user