diff --git a/buildSrc/src/main/kotlin/VersionsAndDependencies.kt b/buildSrc/src/main/kotlin/VersionsAndDependencies.kt index 7720bc2..ab751d7 100644 --- a/buildSrc/src/main/kotlin/VersionsAndDependencies.kt +++ b/buildSrc/src/main/kotlin/VersionsAndDependencies.kt @@ -1,7 +1,7 @@ import com.huanshankeji.CommonDependencies import org.jetbrains.compose.ComposeBuildConfig -val projectVersion = "0.5.1-SNAPSHOT" +val projectVersion = "0.5.1-box-with-constraints-react-to-size-changes-js-dom-SNAPSHOT" val commonDependencies = CommonDependencies() diff --git a/common/src/jsMain/kotlin/com/huanshankeji/compose/foundation/layout/ext/BoxWithConstraints.js.kt b/common/src/jsMain/kotlin/com/huanshankeji/compose/foundation/layout/ext/BoxWithConstraints.js.kt index 1d7b5d5..f4c02c9 100644 --- a/common/src/jsMain/kotlin/com/huanshankeji/compose/foundation/layout/ext/BoxWithConstraints.js.kt +++ b/common/src/jsMain/kotlin/com/huanshankeji/compose/foundation/layout/ext/BoxWithConstraints.js.kt @@ -19,6 +19,7 @@ actual fun BoxWithConstraints( content: @Composable BoxWithConstraintsScope.() -> Unit ) { var clientSize by remember { mutableStateOf(null) } + // `DivBox` doesn't work here either, so it should not be Kobweb's problem. Box( Modifier.fillMaxSizeStretch() .platformModify {