Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Kotlin version: 2.0.0
When using `SharedTransitionLayout`, the animated elements are by default not clipped to its bounds. If the animated elements are part of a scrolling list, the animated element may be partly outside the bounds of the list and the layout. Then, when the animation is triggered, the element is suddenly drawn outside the bounds of the layout.
This can be fixed by setting `Modifier.clipToBounds()` on the `SharedTransitionLayout`, but doing so may be undesirable if the layout shouldn't be clipping it's children and the issue only occurs for the shared element animation.
It would be useful to have an option to only clip elements of the animation overlay to the layout's bounds.
Kotlin Slack thread for reference: