Skip to content

Commit

Permalink
fix: day events sort fixed (#2512)
Browse files Browse the repository at this point in the history
Co-authored-by: mutao.zht <mutao.zht@alibaba-inc.com>
  • Loading branch information
zht826 and mutao.zht committed 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
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.