Commit b7b0d5c
authored
Add
[CMP-8562](https://youtrack.jetbrains.com/issue/CMP-8562) iOS:
"IllegalArgumentException: Cannot round NaN value" caused by
`roundToInt()`
## Release Notes
### Fixes - Multiple Platforms
- Align `roundToPx()` behavior between platforms: `NaN` value produces
`0` instead of `IllegalArgumentException` on non-JVM platforms nowisNaN check for align behavior with JVM (#2526)1 parent 869ceb9 commit b7b0d5c
File tree
2 files changed
+8
-2
lines changed- compose/ui/ui-util/src
- commonTest/kotlin/androidx/compose/ui/util
- nonJvmMain/kotlin/androidx/compose/ui/util
2 files changed
+8
-2
lines changedLines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
105 | 111 | | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
0 commit comments