Commit f2e412a
committed
Fix Fit.LAYOUT artboard oversized on Android
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 #2061 parent c31b359 commit f2e412a
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
105 | 109 | | |
106 | 110 | | |
107 | 111 | | |
| |||
121 | 125 | | |
122 | 126 | | |
123 | 127 | | |
124 | | - | |
125 | | - | |
126 | 128 | | |
127 | 129 | | |
128 | 130 | | |
| |||
0 commit comments