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

Added support for the shadowdom

This commit is contained in:
Brian Grohe 2019-10-31 20:49:44 -04:00
parent 203e833153
commit 69aab8d2d3

View File

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