diff --git a/CHANGELOG.md b/CHANGELOG.md index 4682e9d02e6..1716489a86a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.10.8 + +* `Common` + * Add `Element.isOverflow*` extension properties + ## 0.10.7 * `Pagination`: diff --git a/common/src/jsMain/kotlin/dev/inmo/micro_utils/common/IsOverflow.kt b/common/src/jsMain/kotlin/dev/inmo/micro_utils/common/IsOverflow.kt new file mode 100644 index 00000000000..28412eaa0b0 --- /dev/null +++ b/common/src/jsMain/kotlin/dev/inmo/micro_utils/common/IsOverflow.kt @@ -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 diff --git a/gradle.properties b/gradle.properties index e99c8314392..188d5773257 100644 --- a/gradle.properties +++ b/gradle.properties @@ -14,5 +14,5 @@ crypto_js_version=4.1.1 # Project data group=dev.inmo -version=0.10.7 -android_code_version=122 +version=0.10.8 +android_code_version=123