WojciechOsak / Calendar

Kotlin Multiplatform Calendar Library
Apache License 2.0
108 stars 8 forks source link

Vertically scrollable component was measured with an infinity maximum height constraints, which is disallowed. #11

Closed wlmirand closed 4 months ago

wlmirand commented 4 months ago

Got this exception when using the most basic calendar inside my Composable: I am using this inside a Kotlin Multiplatform project


@OptIn(ExperimentalFoundationApi::class)
@Composable
@Preview
fun TimesheetScreen() {

    val startDate = LocalDate.today()

    HorizontalCalendarView(startDate = startDate) { monthOffset ->
        CalendarView(
            config = rememberCalendarState(
                startDate = startDate,
                monthOffset = monthOffset
            )
        )
    }
}