Skip to content
Snippets Groups Projects
Commit 0f55359b authored by HJ's avatar HJ :fire:
Browse files

fix

parent 4f563e6e
No related branches found
No related tags found
2 merge requests!1028`master` refresh with `develop`,!895Emoji selector update
Pipeline #17584 failed
......@@ -13,9 +13,11 @@ export const findOffset = (child, parent, { top = 0, left = 0 } = {}, ignorePadd
if (child.offsetParent && (parent === window || parent.contains(child.offsetParent) || parent === child.offsetParent)) {
return findOffset(child.offsetParent, parent, result, false)
} else {
const { topPadding, leftPadding } = findPadding(parent)
result.top += topPadding
result.left += leftPadding
if (parent !== window) {
const { topPadding, leftPadding } = findPadding(parent)
result.top += topPadding
result.left += leftPadding
}
return result
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment