small week fragment tweak

This commit is contained in:
tibbi 2017-02-21 21:36:00 +01:00
parent 5fccb0e00b
commit 420f9a5cb5
1 changed files with 1 additions and 1 deletions

View File

@ -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