fix triple+ overlapping
This commit is contained in:
parent
e7f7e24bdf
commit
c97628fdfc
1 changed files with 7 additions and 2 deletions
|
@ -322,10 +322,15 @@ class WeekFragment : Fragment(), WeeklyCalendar {
|
|||
width /= overlappingEvents
|
||||
x = width * currentEventOverlapIndex.toFloat()
|
||||
if (overlappingEvents > 1) {
|
||||
if (currentEventOverlapIndex + 1 == overlappingEvents) {
|
||||
if (currentEventOverlapIndex != 0) {
|
||||
x += density
|
||||
} else {
|
||||
}
|
||||
|
||||
if (currentEventOverlapIndex + 1 != overlappingEvents) {
|
||||
width -= density
|
||||
if (currentEventOverlapIndex != 0) {
|
||||
width -= density
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue