Closed swankjesse closed 1 day ago
Related: #1859
Looking into this now. On iOS our root view doesn’t care if its child component’s dimensions exceed its own. Here I’ve got a label that’s 965px wide in a parent that’s 393px wide.
The root layout should be a pass-through layout:
I need to confirm we’re doing this on both platforms.
Box(
width = Constraint.Fill,
height = Constraint.Fill,
) {
Column(
width = Constraint.Wrap,
) {
Text(
modifier = Modifier.margin(Margin(start = 350.dp)),
text = "hello_world"
)
}
}
On Android we don’t permit child components to exceed the columns’ own bounds. On iOS we do.
We should pick one and be consistent.
Here’s a composition with a label that draws wider than the screen.
And here’s what that looks like on an iOS and Android device:
These should be the same.