fillMaxWidth with a value of 0.5f is not working, ...
# compose
p
fillMaxWidth with a value of 0.5f is not working, instead, is wrapping to the content width...
Copy code
OutlinedButton(
    modifier = modifier.fillMaxWidth(0.5f)
Is there something wrong? The OutlinedButton is inside a LazyRow
z
Scrollable containers (such as LazyRow) don’t have a max constraint on their scroll axis, so fillMax does nothing.
p
oh, and how can I achieve this?
z
What are you trying to achieve? If you’re trying to get the button to match the viewport size, there’s special modifiers for that: https://developer.android.com/reference/kotlin/androidx/compose/foundation/lazy/LazyItemScope