diff --git a/src/utils/layout-algorithms/no-overlap.js b/src/utils/layout-algorithms/no-overlap.js
index e4b5c12ea..8738f26bf 100644
--- a/src/utils/layout-algorithms/no-overlap.js
+++ b/src/utils/layout-algorithms/no-overlap.js
@@ -51,7 +51,7 @@ export default function ({
const y4 = se2.style.top + se2.style.height
// be friends when overlapped
- if ((y3 <= y1 && y1 < y4) || (y1 <= y3 && y3 < y2)) {
+ if ((y3 <= y1 && y1 <= y4) || (y1 <= y3 && y3 <= y2)) {
// TODO : hashmap would be effective for performance
se1.friends.push(se2)
se2.friends.push(se1)
diff --git a/stories/Layout.stories.js b/stories/Layout.stories.js
index 2a4060f81..ccf31d9fa 100644
--- a/stories/Layout.stories.js
+++ b/stories/Layout.stories.js
@@ -13,10 +13,12 @@ export default {
const Template = (args) =>