Skip to content

Ratio issue #477

Open
Open

Description

@laurentvoodoo

Submission checklist

  • I have confirmed the issue is present in the latest version of rive-android
  • I have searched the documentation and forums and could not find an answer
  • I have searched existing issues and this is not a duplicate

Description

Ratio for one animation is KO on latest versions.
Ratio is OK on version 11.7.2
Ratio is KO on versions 11.8.0, 11.12.1, 11.14.3

Previous working version

11.7.2

Reproduction steps / code

    Box(
        modifier = Modifier.fillMaxSize().background(color = Color.Black)
    ) {
        val worker = rememberRiveWorker()
        val riveFile = rememberRiveFile(
             RiveFileSource.RawRes.from(R.raw.anim_challenge),
             riveWorker
        )

        when(riveFile) {
            is Result.Success<RiveFile> ->  {
                Rive(
                    modifier = Modifier.fillMaxWidth().aspectRatio(375f / 604f).align(Alignment.Center).background(color = Color.DarkGray),
                    file = riveFile.value,
                    playing = true,
                    fit = Fit.Contain(),
                    pointerInputMode = RivePointerInputMode.PassThrough
                )
            }

            else -> {}
        }

    }

Upload your reproduction files / stack trace

No response

Source .riv / .rev file

anim_challenge.zip

Screenshots / video

Screen_Recording_v11.14.3.mp4
Screen_Recording_v11.7.2.mp4

Rive Android runtime version

11.14.3

Rive API

Compose

Device

Samsung A32, Pixel 4a, Pixel 6a

Device OS

Android 13 + Android 17

App minimum SDK level

29

App target SDK level

36

App NDK level

No response

Other Rive runtimes affected

No response

Dependencies with native libraries

No response

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions