fix triple+ overlapping

This commit is contained in:
tibbi 2019-02-14 15:48:17 +01:00
parent e7f7e24bdf
commit c97628fdfc

View File

@ -322,10 +322,15 @@ class WeekFragment : Fragment(), WeeklyCalendar {
width /= overlappingEvents width /= overlappingEvents
x = width * currentEventOverlapIndex.toFloat() x = width * currentEventOverlapIndex.toFloat()
if (overlappingEvents > 1) { if (overlappingEvents > 1) {
if (currentEventOverlapIndex + 1 == overlappingEvents) { if (currentEventOverlapIndex != 0) {
x += density x += density
} else { }
if (currentEventOverlapIndex + 1 != overlappingEvents) {
width -= density width -= density
if (currentEventOverlapIndex != 0) {
width -= density
}
} }
} }