Skip to content

Fix Fit.LAYOUT artboard oversized on Android (experimental)#210

Draft
mfazekas wants to merge 1 commit intofeat/rive-ios-experimentalfrom
fix/android-fit-layout-scale-factor-experimental
Draft

Fix Fit.LAYOUT artboard oversized on Android (experimental)#210
mfazekas wants to merge 1 commit intofeat/rive-ios-experimentalfrom
fix/android-fit-layout-scale-factor-experimental

Conversation

@mfazekas
Copy link
Copy Markdown
Collaborator

Stacked on experimental branch. Same fix as #209.

Set layoutScaleFactorAutomatic to device density at init time to prevent the render thread from using the default 1.0 before onMeasure fires.

Fixes #206

@mfazekas mfazekas force-pushed the fix/android-fit-layout-scale-factor-experimental branch from e520b6e to 4cb25d3 Compare April 10, 2026 13:54
Set layoutScaleFactor to device density before setRiveFile when the user
hasn't set an explicit value. layoutScaleFactorAutomatic defaults to 1.0
and onMeasure may not fire before the render thread uses it.

Fixes #206
@mfazekas mfazekas force-pushed the fix/android-fit-layout-scale-factor-experimental branch from 4cb25d3 to f2e412a Compare April 10, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant