mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2026-09-12 11:14:22 +00:00
13 lines
294 B
Kotlin
13 lines
294 B
Kotlin
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
|