Skip to content

Commit a5c077a

Browse files
committed
Fix width of collapsing header
1 parent 3933470 commit a5c077a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

library/composables/src/commonMain/kotlin/com/tunjid/composables/collapsingheader/CollapsingHeaderState.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,10 @@ class CollapsingHeaderState(
238238
): MeasureResult = with(measureScope) {
239239
val placeable = measurable.measure(constraints)
240240
expandedHeight = placeable.height.toFloat()
241-
layout(placeable.height, placeable.height) {
241+
layout(
242+
width = placeable.width,
243+
height = placeable.height,
244+
) {
242245
placeable.place(0, 0)
243246
}
244247
}

0 commit comments

Comments
 (0)