We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I thought the minimal repro was going to simply be 'pass Infinity to MeasureScope.layout()', but it seems to be more complicated than that.
Infinity
MeasureScope.layout()
@Test fun infinity() = runTest { runMosaicTest { setContentAndSnapshot { Layout(content = { Text("Hello") }) { measurables, constraints -> val placeables = measurables.map { it.measure(constraints) } layout(constraints.maxWidth, placeables.sumOf { it.height }) { placeables.forEach { it.place(0, 0) } } } } } }
Seems like there needs to be a Text in the content, and it needs to be measured and placed. The height also needs to be non-Infinity.
Text
I don't think that this should necessarily be supported, but throwing an exception would be better than hanging.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I thought the minimal repro was going to simply be 'pass
Infinity
toMeasureScope.layout()
', but it seems to be more complicated than that.Seems like there needs to be a
Text
in the content, and it needs to be measured and placed. The height also needs to be non-Infinity.I don't think that this should necessarily be supported, but throwing an exception would be better than hanging.
The text was updated successfully, but these errors were encountered: