mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2026-09-12 19:24:26 +00:00
continue to try to add wasm target
This commit is contained in:
12
common/src/wasmJsMain/kotlin/IsOverflow.kt
Normal file
12
common/src/wasmJsMain/kotlin/IsOverflow.kt
Normal file
@@ -0,0 +1,12 @@
|
||||
package dev.inmo.micro_utils.common
|
||||
|
||||
import org.w3c.dom.Element
|
||||
|
||||
inline val Element.isOverflowWidth
|
||||
get() = scrollWidth > clientWidth
|
||||
|
||||
inline val Element.isOverflowHeight
|
||||
get() = scrollHeight > clientHeight
|
||||
|
||||
inline val Element.isOverflow
|
||||
get() = isOverflowHeight || isOverflowWidth
|
||||
Reference in New Issue
Block a user