From 420f9a5cb52ab7a714bb2a18a61aa2e170db0803 Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 21 Feb 2017 21:36:00 +0100 Subject: [PATCH] small week fragment tweak --- .../com/simplemobiletools/calendar/fragments/WeekFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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