Skip to content

Change input position via CSS variables #2013

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

Open
wants to merge 1 commit into
base: jb-main
Choose a base branch
from

Conversation

Schahen
Copy link

@Schahen Schahen commented Apr 15, 2025

private const val topPropertyName = "--compose-internal-web-backing-input-top"

var cssInternalWebBackingInputLeft: Float
get() = getDocumentRoot().style.getPropertyValue(leftPropertyName)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it passes a string on every get/set call, it would convert a kotlin string to a js string in case of k/wasm. That's what we wanted to overcome.

Can this getter/setter be implemented using a js(...) call?

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.

3 participants