Skip to content

Commit

Permalink
fix: Set ComposeViewHolder to match parent so that child composables …
Browse files Browse the repository at this point in the history
…have more flexibility
  • Loading branch information
YingChen0605 committed Jul 12, 2024
1 parent 5f7a864 commit 62b8999
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ abstract class ComposeViewHolder<P, T> : ComponentViewHolder<P, T>() {
element = element ?: return@setContent
)
}
layoutParams = ViewGroup.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.MATCH_PARENT
)
}
return composeView
}
Expand Down

0 comments on commit 62b8999

Please sign in to comment.