File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed
compose-multiplatform-common/src/jsMain/kotlin/com/huanshankeji/compose/foundation/layout Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ actual interface ColumnScope {
4242 @FloatRange(from = 0.0 , fromInclusive = false )
4343 weight : Float
4444 ): Modifier =
45- with (platformValue) { platformModify { weight(weight) } }
45+ with (platformValue) { platformModify { flexBasis0(). weight(weight) } }
4646
4747 @Stable
4848 actual fun Modifier.align (alignment : Alignment .Horizontal ): Modifier =
Original file line number Diff line number Diff line change 1+ package com.huanshankeji.compose.foundation.layout
2+
3+ import com.huanshankeji.compose.ui.PlatformModifier
4+ import com.varabyte.kobweb.compose.ui.modifiers.flexBasis
5+ import org.jetbrains.compose.web.css.px
6+
7+ fun PlatformModifier.flexBasis0 () =
8+ flexBasis(0 .px)
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ actual interface RowScope {
4242 @FloatRange(from = 0.0 , fromInclusive = false )
4343 weight : Float
4444 ): Modifier =
45- with (platformValue) { platformModify { weight(weight) } }
45+ with (platformValue) { platformModify { flexBasis0(). weight(weight) } }
4646
4747 @Stable
4848 actual fun Modifier.align (alignment : Alignment .Vertical ): Modifier =
You can’t perform that action at this time.
0 commit comments