We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3e6c9d commit f7bfd11Copy full SHA for f7bfd11
src/utils/layout-algorithms/no-overlap.js
@@ -50,8 +50,11 @@ export default function ({
50
const y3 = se2.style.top
51
const y4 = se2.style.top + se2.style.height
52
53
- // be friends when overlapped
54
- if ((y3 <= y1 && y1 <= y4) || (y1 <= y3 && y3 <= y2)) {
+ if (
+ (y3 >= y1 && y4 <= y2) ||
55
+ (y4 > y1 && y4 <= y2) ||
56
+ (y3 >= y1 && y3 < y2)
57
+ ) {
58
// TODO : hashmap would be effective for performance
59
se1.friends.push(se2)
60
se2.friends.push(se1)
0 commit comments