WojciechOsak / Calendar

Kotlin Multiplatform Calendar Library
Apache License 2.0
68 stars 3 forks source link

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

Closed wlmirand closed 5 days ago

wlmirand commented 6 days 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
            )
        )
    }
}