diff --git a/compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt b/compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt index e07a8e14..a5d09274 100644 --- a/compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt +++ b/compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt @@ -59,7 +59,7 @@ internal fun LazyListScope.YearCalendarMonths( YearContentHeightMode.Wrap -> false YearContentHeightMode.Fill, YearContentHeightMode.Stretch, - -> true + -> true } val hasYearContainer = yearContainer != null yearContainer.or(defaultYearContainer)(year) { diff --git a/compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt b/compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt index 2fe3f67a..65e5d7da 100644 --- a/compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt +++ b/compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt @@ -398,7 +398,7 @@ public class YearCalendarState internal constructor( // Equal month height, we can multiply reliably. YearContentHeightMode.Fill, YearContentHeightMode.Stretch, - -> true + -> true } // Equal month width, we can multiply reliably. diff --git a/compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearItemPlacementInfo.kt b/compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearItemPlacementInfo.kt index 673698f0..8c60f496 100644 --- a/compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearItemPlacementInfo.kt +++ b/compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/compose/yearcalendar/YearItemPlacementInfo.kt @@ -74,7 +74,7 @@ internal class YearItemPlacementInfo { monthSpacing = monthVerticalSpacingPx, dayOffsetInMonth = dayOffsetInMonth.y, daySize = daySize.height, - dayBodyCount = month.weekDays.size + dayBodyCount = month.weekDays.size, ) Orientation.Horizontal -> { @@ -84,7 +84,7 @@ internal class YearItemPlacementInfo { monthSpacing = monthHorizontalSpacingPx, dayOffsetInMonth = dayOffsetInMonth.x, daySize = daySize.width, - dayBodyCount = month.weekDays.first().size + dayBodyCount = month.weekDays.first().size, ) } } diff --git a/compose/src/main/java/com/kizitonwose/calendar/compose/CalendarState.kt b/compose/src/main/java/com/kizitonwose/calendar/compose/CalendarState.kt index 64d16077..4651409b 100644 --- a/compose/src/main/java/com/kizitonwose/calendar/compose/CalendarState.kt +++ b/compose/src/main/java/com/kizitonwose/calendar/compose/CalendarState.kt @@ -34,7 +34,6 @@ import java.time.DayOfWeek import java.time.LocalDate import java.time.YearMonth - /** * Creates a [CalendarState] that is remembered across compositions. * diff --git a/compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt b/compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt index bb0bde5a..0afd670a 100644 --- a/compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt +++ b/compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarMonths.kt @@ -59,7 +59,7 @@ internal fun LazyListScope.YearCalendarMonths( YearContentHeightMode.Wrap -> false YearContentHeightMode.Fill, YearContentHeightMode.Stretch, - -> true + -> true } val hasYearContainer = yearContainer != null yearContainer.or(defaultYearContainer)(year) { diff --git a/compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt b/compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt index 950ca186..130dc9f0 100644 --- a/compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt +++ b/compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearCalendarState.kt @@ -398,7 +398,7 @@ public class YearCalendarState internal constructor( // Equal month height, we can multiply reliably. YearContentHeightMode.Fill, YearContentHeightMode.Stretch, - -> true + -> true } // Equal month width, we can multiply reliably. diff --git a/compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearItemPlacementInfo.kt b/compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearItemPlacementInfo.kt index 673698f0..8c60f496 100644 --- a/compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearItemPlacementInfo.kt +++ b/compose/src/main/java/com/kizitonwose/calendar/compose/yearcalendar/YearItemPlacementInfo.kt @@ -74,7 +74,7 @@ internal class YearItemPlacementInfo { monthSpacing = monthVerticalSpacingPx, dayOffsetInMonth = dayOffsetInMonth.y, daySize = daySize.height, - dayBodyCount = month.weekDays.size + dayBodyCount = month.weekDays.size, ) Orientation.Horizontal -> { @@ -84,7 +84,7 @@ internal class YearItemPlacementInfo { monthSpacing = monthHorizontalSpacingPx, dayOffsetInMonth = dayOffsetInMonth.x, daySize = daySize.width, - dayBodyCount = month.weekDays.first().size + dayBodyCount = month.weekDays.first().size, ) } }