diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/fragments/WeekFragment.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/fragments/WeekFragment.kt index 02ec34d7a..71efc6150 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/fragments/WeekFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/fragments/WeekFragment.kt @@ -249,7 +249,7 @@ class WeekFragment : Fragment(), WeeklyCalendar { text = event.title activity.runOnUiThread { layout.addView(this) - y = startMinutes * minuteHeight + y = Math.max(startMinutes * minuteHeight, minScrollY.toFloat()) (layoutParams as RelativeLayout.LayoutParams).apply { width = layout.width - 1 minHeight = if (event.startTS == event.endTS) minimalHeight else (duration * minuteHeight).toInt() - 1