Skip to content

Commit ac1ff00

Browse files
zht826mutao.zht
andauthored
fix: day events sort fixed (jquense#2512)
Co-authored-by: mutao.zht <[email protected]>
1 parent 14ed2ca commit ac1ff00

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/utils/layout-algorithms/no-overlap.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ export default function ({
2929
a = a.style
3030
b = b.style
3131
if (a.top !== b.top) return a.top > b.top ? 1 : -1
32-
else return a.top + a.height < b.top + b.height ? 1 : -1
32+
else if (a.height !== b.height)
33+
return a.top + a.height < b.top + b.height ? 1 : -1
34+
else return 0
3335
})
3436

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

0 commit comments

Comments
 (0)