mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-18 12:50:34 +01:00
fixing s few more overlapping glitches
This commit is contained in:
parent
df241feea0
commit
686d7cc0ad
@ -326,15 +326,15 @@ class WeekFragment : Fragment(), WeeklyCalendar {
|
||||
y = startMinutes * minuteHeight
|
||||
(layoutParams as RelativeLayout.LayoutParams).apply {
|
||||
width = layout.width - 1
|
||||
width /= overlappingEvents
|
||||
x = width * currentEventOverlapIndex.toFloat()
|
||||
width /= Math.max(overlappingEvents, 1)
|
||||
if (overlappingEvents > 1) {
|
||||
x = width * currentEventOverlapIndex.toFloat()
|
||||
if (currentEventOverlapIndex != 0) {
|
||||
x += density
|
||||
}
|
||||
|
||||
if (currentEventOverlapIndex + 1 != overlappingEvents) {
|
||||
width -= density
|
||||
if (currentEventOverlapIndex + 1 != overlappingEvents) {
|
||||
if (currentEventOverlapIndex != 0) {
|
||||
width -= density
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user