add extra height in case of 2 all-day evnts just once

This commit is contained in:
tibbi 2017-02-04 16:52:36 +01:00
parent cfed46f4a1
commit 2d12c09d2c
1 changed files with 3 additions and 1 deletions

View File

@ -238,8 +238,10 @@ class WeekFragment : Fragment(), WeeklyCalendar {
(activity as MainActivity).updateHoursTopMargin(mView.week_top_holder.height)
}
if (!wasExtraHeightAdded)
if (!wasExtraHeightAdded) {
maxScrollY += mView.week_all_day_holder.height
wasExtraHeightAdded = true
}
}
})
}