Skip to content

Commit

Permalink
Update the project version for this branch and try replacing Box wi…
Browse files Browse the repository at this point in the history
…th `DivBox` in `BoxWithConstraints`
  • Loading branch information
ShreckYe committed Dec 10, 2024
1 parent 684c0e6 commit 171dd5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/VersionsAndDependencies.kt
Original file line number Diff line number Diff line change
@@ -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()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ actual fun BoxWithConstraints(
content: @Composable BoxWithConstraintsScope.() -> Unit
) {
var clientSize by remember { mutableStateOf<ClientSize?>(null) }
// `DivBox` doesn't work here either, so it should not be Kobweb's problem.
Box(
Modifier.fillMaxSizeStretch()
.platformModify {
Expand Down

0 comments on commit 171dd5b

Please sign in to comment.