@blorkfield/overlay-core 0.5.3 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1555,12 +1555,12 @@ var OverlayScene = class {
1555
1555
  const shadowElement = entry.domElement.cloneNode(true);
1556
1556
  shadowElement.style.opacity = String(opacity);
1557
1557
  shadowElement.style.pointerEvents = "none";
1558
+ const { x, y } = entry.originalPosition;
1558
1559
  const width = entry.domElement.offsetWidth;
1559
1560
  const height = entry.domElement.offsetHeight;
1560
- shadowElement.style.setProperty("position", "absolute", "important");
1561
- shadowElement.style.setProperty("left", `${entry.originalPosition.x - width / 2}px`, "important");
1562
- shadowElement.style.setProperty("top", `${entry.originalPosition.y - height / 2}px`, "important");
1563
- shadowElement.style.setProperty("transform", "rotate(0deg)", "important");
1561
+ shadowElement.style.left = `${x - width / 2}px`;
1562
+ shadowElement.style.top = `${y - height / 2}px`;
1563
+ shadowElement.style.transform = "rotate(0deg)";
1564
1564
  entry.domElement.parentNode?.insertBefore(shadowElement, entry.domElement);
1565
1565
  entry.domShadowElement = shadowElement;
1566
1566
  return;