1
0
mirror of synced 2024-11-21 20:46:07 +03:00

Merge pull request #5691 from paxnovem/GH-5682

Fix support for the Shadow DOM when calculating offsets
This commit is contained in:
Kevin Brown 2019-11-05 20:12:15 -05:00 committed by GitHub
commit 1da125f11e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -195,7 +195,10 @@ define([
left: 0
};
if ($.contains(document.body, $offsetParent[0])) {
if (
$.contains(document.body, $offsetParent[0]) ||
$offsetParent[0].isConnected
) {
parentOffset = $offsetParent.offset();
}