Skip to content

Commit 75e6985

Browse files
committed
feat: Set ComposeViewHolder to match parent
1 parent 5f7a864 commit 75e6985

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bento-compose/src/main/java/com/yelp/android/bento/compose/ComposeViewHolder.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ abstract class ComposeViewHolder<P, T> : ComponentViewHolder<P, T>() {
3434
element = element ?: return@setContent
3535
)
3636
}
37+
layoutParams = ViewGroup.LayoutParams(
38+
ViewGroup.LayoutParams.MATCH_PARENT,
39+
ViewGroup.LayoutParams.MATCH_PARENT
40+
)
3741
}
3842
return composeView
3943
}

0 commit comments

Comments
 (0)