Skip to content

Commit b583ba8

Browse files
ckettimgod
authored andcommitted
Add support for changing view layouts to ViewSpan
1 parent 763c446 commit b583ba8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/main/java/com/tokenautocomplete/ViewSpan.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public ViewSpan(View view, ViewSpan.Layout layout) {
3030
}
3131

3232
private void prepView() {
33-
if (layout.getMaxViewSpanWidth() != cachedMaxWidth) {
33+
if (layout.getMaxViewSpanWidth() != cachedMaxWidth || view.isLayoutRequested()) {
3434
cachedMaxWidth = layout.getMaxViewSpanWidth();
3535

3636
int spec = View.MeasureSpec.AT_MOST;

0 commit comments

Comments
 (0)