avoid glitching when end time is too close to start time

This commit is contained in:
tibbi 2017-01-21 21:35:52 +01:00
parent 3b41a33202
commit e387e19fd1
1 changed files with 2 additions and 0 deletions

View File

@ -76,6 +76,8 @@ class WeekFragment : Fragment(), WeeklyCalendar {
val bounds = Rect()
week_events_holder.getGlobalVisibleRect(bounds)
maxScrollY -= bounds.bottom - bounds.top
if (minScrollY > maxScrollY)
maxScrollY = -1
checkScrollLimits(mView.week_events_scrollview.scrollY)
}