Bug 466973 - Events can overlap such as one hides the other
Summary: Events can overlap such as one hides the other
Status: CONFIRMED
Alias: None
Product: korganizer
Classification: Applications
Component: monthview (show other bugs)
Version: 5.22.3
Platform: Debian unstable Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-06 21:05 UTC by Alex Dănilă
Modified: 2023-11-12 11:01 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot (122.84 KB, image/png)
2023-03-06 21:05 UTC, Alex Dănilă
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Dănilă 2023-03-06 21:05:46 UTC
Created attachment 157065 [details]
Screenshot

SUMMARY
When working with a few events that extend over more than one day, it is easy to get into a situation when one event hides the other


STEPS TO REPRODUCE
1. Create a couple of multi-day events. E.g. in the screenshot:
   - event1: 06-03 - 06-04
   - event2: 06-04 - 06-05
   - event4: 06-26 - 07-03
   - event5: 07-06 - 0709
2. Notice the event 3 may or may no be visible, depending on the order of creation and interaction.

OBSERVED RESULT


EXPECTED RESULT
Easier to distinguish and interact with the different events.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian GNU/Linux 12, 6.1.0-5-amd64
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Comment 1 Alex Dănilă 2023-03-07 20:00:55 UTC
Comment on attachment 157065 [details]
Screenshot

event3 is under event1 even though it is selected.
Comment 2 Daniel Vrátil 2023-11-12 11:01:04 UTC
Hi, thanks for the report. I can confirm the bug, simpler setup:

Event 1: 17th Nov - 18th Nov
Event 2: 20th Nov - 21st Nov
Event 3: 18th Nov - 19th Nov
Event 4: 19th Nov - 20th Nov

The problem happens on 19th Nov where Event 3 and Event 4 will be rendered on top of each other. This is a limitation in the layout algorithm as it has no simple solution for this without introducing gap between Event 1 and Event 3 on 18th or a gap between Event 2 and Event 4 on 20th.

I'll try to see what other calendaring apps do and try to fix the algorithm.