Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
fix: day events sort fixed (jquense#2512)
Browse files Browse the repository at this point in the history
Co-authored-by: mutao.zht <[email protected]>
  • Loading branch information
zht826 and mutao.zht authored Feb 19, 2024
1 parent 14ed2ca commit ac1ff00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/layout-algorithms/no-overlap.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ export default function ({
a = a.style
b = b.style
if (a.top !== b.top) return a.top > b.top ? 1 : -1
else return a.top + a.height < b.top + b.height ? 1 : -1
else if (a.height !== b.height)
return a.top + a.height < b.top + b.height ? 1 : -1
else return 0
})

for (let i = 0; i < styledEvents.length; ++i) {
Expand Down

0 comments on commit ac1ff00

Please sign in to comment.