You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have an animation that is wider than the screen width. I need to display it in a scrollable column. The animation should fill the screen width and i expect the height to be calculated in the correct ratio. Actually, the animation is displayed correctly, but takes a height equal to the height specified in the json file.
The reason for this is probably that the Canvas in the LottieAnimation component uses composition.bounds.height() and composition.bounds.width() without any calculation depending on the allowed max width.
Link to fork with a repro in the issue-repro module
https://github.com/sergey-shevtsov/lottie-android/tree/compose-width-issue/issue-repro-compose
Describe the bug
I have an animation that is wider than the screen width. I need to display it in a scrollable column. The animation should fill the screen width and i expect the height to be calculated in the correct ratio. Actually, the animation is displayed correctly, but takes a height equal to the height specified in the json file.
The reason for this is probably that the Canvas in the LottieAnimation component uses
composition.bounds.height()
andcomposition.bounds.width()
without any calculation depending on the allowed max width.Steps To Reproduce
Column
withverticalScroll
modifierLottieAnimation
component withContentScale.FillWidth
on the created columnExpected result:
Actual result:
The text was updated successfully, but these errors were encountered: