Skip to content

Commit 171dd5b

Browse files
committed
Update the project version for this branch and try replacing Box with DivBox in BoxWithConstraints
1 parent 684c0e6 commit 171dd5b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

buildSrc/src/main/kotlin/VersionsAndDependencies.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import com.huanshankeji.CommonDependencies
22
import org.jetbrains.compose.ComposeBuildConfig
33

4-
val projectVersion = "0.5.1-SNAPSHOT"
4+
val projectVersion = "0.5.1-box-with-constraints-react-to-size-changes-js-dom-SNAPSHOT"
55

66
val commonDependencies = CommonDependencies()
77

common/src/jsMain/kotlin/com/huanshankeji/compose/foundation/layout/ext/BoxWithConstraints.js.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ actual fun BoxWithConstraints(
1919
content: @Composable BoxWithConstraintsScope.() -> Unit
2020
) {
2121
var clientSize by remember { mutableStateOf<ClientSize?>(null) }
22+
// `DivBox` doesn't work here either, so it should not be Kobweb's problem.
2223
Box(
2324
Modifier.fillMaxSizeStretch()
2425
.platformModify {

0 commit comments

Comments
 (0)