@blorkfield/overlay-core 0.5.3 → 0.5.5

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.js CHANGED
@@ -1511,12 +1511,12 @@ var OverlayScene = class {
1511
1511
  const shadowElement = entry.domElement.cloneNode(true);
1512
1512
  shadowElement.style.opacity = String(opacity);
1513
1513
  shadowElement.style.pointerEvents = "none";
1514
+ const { x, y } = entry.originalPosition;
1514
1515
  const width = entry.domElement.offsetWidth;
1515
1516
  const height = entry.domElement.offsetHeight;
1516
- shadowElement.style.setProperty("position", "absolute", "important");
1517
- shadowElement.style.setProperty("left", `${entry.originalPosition.x - width / 2}px`, "important");
1518
- shadowElement.style.setProperty("top", `${entry.originalPosition.y - height / 2}px`, "important");
1519
- shadowElement.style.setProperty("transform", "rotate(0deg)", "important");
1517
+ shadowElement.style.left = `${x - width / 2}px`;
1518
+ shadowElement.style.top = `${y - height / 2}px`;
1519
+ shadowElement.style.transform = "rotate(0deg)";
1520
1520
  entry.domElement.parentNode?.insertBefore(shadowElement, entry.domElement);
1521
1521
  entry.domShadowElement = shadowElement;
1522
1522
  return;