@blorkfield/overlay-core 0.5.5 → 0.5.6

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
@@ -1514,9 +1514,21 @@ var OverlayScene = class {
1514
1514
  const { x, y } = entry.originalPosition;
1515
1515
  const width = entry.domElement.offsetWidth;
1516
1516
  const height = entry.domElement.offsetHeight;
1517
- shadowElement.style.left = `${x - width / 2}px`;
1518
- shadowElement.style.top = `${y - height / 2}px`;
1519
- shadowElement.style.transform = "rotate(0deg)";
1517
+ const computedLeft = x - width / 2;
1518
+ const computedTop = y - height / 2;
1519
+ console.log("[Shadow Debug]", {
1520
+ originalPosition: { x, y },
1521
+ elementSize: { width, height },
1522
+ computedPosition: { left: computedLeft, top: computedTop },
1523
+ elementCurrentStyle: {
1524
+ left: entry.domElement.style.left,
1525
+ top: entry.domElement.style.top,
1526
+ transform: entry.domElement.style.transform
1527
+ }
1528
+ });
1529
+ shadowElement.style.setProperty("left", `${computedLeft}px`, "important");
1530
+ shadowElement.style.setProperty("top", `${computedTop}px`, "important");
1531
+ shadowElement.style.setProperty("transform", "rotate(0deg)", "important");
1520
1532
  entry.domElement.parentNode?.insertBefore(shadowElement, entry.domElement);
1521
1533
  entry.domShadowElement = shadowElement;
1522
1534
  return;