-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix LineMetrics resolution for wasm and js targets #846
Conversation
This contributes to fixing https://youtrack.jetbrains.com/issue/COMPOSE-108/CfW-fix-TextField-cursor I had to introduce assertCloseEnough sensitive enought to path throughout all our targets
skiko/src/commonTest/kotlin/org/jetbrains/skia/ParagraphTest.kt
Outdated
Show resolved
Hide resolved
skiko/src/commonTest/kotlin/org/jetbrains/skia/ParagraphTest.kt
Outdated
Show resolved
Hide resolved
baseline = 13.619318008422852, | ||
lineNumber = 0 | ||
), epsilon = lineMetricsEpsilon | ||
) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now it's a redundant '}' so it doesn't compile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My bad, fixed 🤦
skiko/src/commonTest/kotlin/org/jetbrains/skia/util/assertCloseEnough.kt
Outdated
Show resolved
Hide resolved
is this fix in version "1.6.0-beta01" ? |
@dhakehurst I see it was fixed in 1.6.0-beta02. |
The issue JetBrains/compose-multiplatform#4078 was fixed earlier. Probably in skiko: JetBrains/skiko#846
This contributes to fixing https://youtrack.jetbrains.com/issue/COMPOSE-108/CfW-fix-TextField-cursor
I had to introduce assertCloseEnough sensitive enought to path throughout all our targets
Fixes JetBrains/compose-multiplatform#3120