Assigned
Status Update
Comments
bl...@gmail.com <bl...@gmail.com> #2
Tram, can you confirm that the behavior is correct if the modifier is moved to the composable inside the AnimatedPane?
co...@google.com <co...@google.com> #3
Hi Max, yes when the modifiers are moved to the composable inside the AnimatedPane, the PB animations are better than when the modifiers are in the AnimatedPane itself
Description
Consider the attached sample project. It is a lazy list which contains a video. Video size is not known at the start so starts off as a small 50.dp placeholder. When the video starts playing, the Composable resizes correctly, as evidenced by the
onSizeChanged
listener printing out the new size.Normally, the list would accommodate the new size. But specifcally when using the list in https://issuetracker.google.com/issues/341537869#comment19 ).
ListDetailPaneScaffold
, it does not. It seems to keep reporting the old size toLazyColumn
, while the composable itself is drawn correct. (See my comment @Attached is a video of the aberrant behaviour and a video of correct behaviour. Correct behaviour can be achieved by commenting out the
ListDetailPaneScaffold
and just rendering the pane content.