Hi all, I’m trying to run a fake layout pass and then capture a screenshot in my test. I’m grabbing the root Window View, and then calling measure/layout/draw manually on it to get the bitmap in the size I want.
The problem I’m running into is that subcomposed composables aren’t positioned correctly in my screenshots. In my specific case, I have a LazyList with 3 items. When I run the test, the 3 items are drawn on top of each other (instead of stacked vertically in a column) in the screenshot. (Screenshots in 🧵 )
Anyone know if there’s anything else I need to do to draw View/Composable content into a Bitmap correctly?