Kotlin / kotlinx.html

Kotlin DSL for HTML
Apache License 2.0
1.63k stars 133 forks source link

body.sytle have overflowX and overflowY but not overflow #199

Closed ker2x closed 1 year ago

ker2x commented 2 years ago

I don't know if it's on purpose or not, but document.body!!.style.overflow = "hidden" doesn't works.

This works :

    document.body!!.style.overflowX = "hidden"
    document.body!!.style.overflowY = "hidden"

I expected that setting style.overflow set style.overflowX style.overflowY to the same provided value but I got an unresolved reference instead

severn-everett commented 1 year ago

style refers to an instance of CSSStyleDeclaration which is not actually a part of this library, but rather in the main Kotlin repo, so I'd close this ticket and re-open it over at youtrack.jetbrains.com instead.