Skip to content

Commit 92534ce

Browse files
committed
Added logic for reflow in get-overflow-ancestors
1 parent e160933 commit 92534ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/commons/dom/get-overflow-hidden-ancestors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const getOverflowHiddenAncestors = memoize(
2929
}
3030
} else if (
3131
cache.get('ruleId') &&
32-
cache.get('ruleId') === 'reflow' &&
32+
cache.get('ruleId') === 'reflow-4x-zoom-scroll' &&
3333
overflow.includes('hidden')
3434
) {
3535
ancestors.push(vNode);

lib/commons/dom/get-visible-child-text-rects.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const getVisibleChildTextRects = (node, options = {}) => {
3636
nodeRect,
3737
checkTextRectOutsideNodeBoundingRect
3838
) &&
39-
(!cache.get('ruleId') || cache.get('ruleId') === 'reflow')
39+
(!cache.get('ruleId') || cache.get('ruleId') === 'reflow-4x-zoom-scroll')
4040
) {
4141
return;
4242
}

0 commit comments

Comments
 (0)