From 75e698528e13b5ddac8b847ed87771f462c517f0 Mon Sep 17 00:00:00 2001 From: yingchen Date: Fri, 12 Jul 2024 10:09:07 -0700 Subject: [PATCH] feat: Set ComposeViewHolder to match parent --- .../java/com/yelp/android/bento/compose/ComposeViewHolder.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bento-compose/src/main/java/com/yelp/android/bento/compose/ComposeViewHolder.kt b/bento-compose/src/main/java/com/yelp/android/bento/compose/ComposeViewHolder.kt index 159a613..aaaa4bd 100644 --- a/bento-compose/src/main/java/com/yelp/android/bento/compose/ComposeViewHolder.kt +++ b/bento-compose/src/main/java/com/yelp/android/bento/compose/ComposeViewHolder.kt @@ -34,6 +34,10 @@ abstract class ComposeViewHolder : ComponentViewHolder() { element = element ?: return@setContent ) } + layoutParams = ViewGroup.LayoutParams( + ViewGroup.LayoutParams.MATCH_PARENT, + ViewGroup.LayoutParams.MATCH_PARENT + ) } return composeView }