@blorkfield/overlay-core 0.5.4 → 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.cjs CHANGED
@@ -1558,9 +1558,21 @@ var OverlayScene = class {
1558
1558
  const { x, y } = entry.originalPosition;
1559
1559
  const width = entry.domElement.offsetWidth;
1560
1560
  const height = entry.domElement.offsetHeight;
1561
- shadowElement.style.left = `${x - width / 2}px`;
1562
- shadowElement.style.top = `${y - height / 2}px`;
1563
- shadowElement.style.transform = "rotate(0deg)";
1561
+ const computedLeft = x - width / 2;
1562
+ const computedTop = y - height / 2;
1563
+ console.log("[Shadow Debug]", {
1564
+ originalPosition: { x, y },
1565
+ elementSize: { width, height },
1566
+ computedPosition: { left: computedLeft, top: computedTop },
1567
+ elementCurrentStyle: {
1568
+ left: entry.domElement.style.left,
1569
+ top: entry.domElement.style.top,
1570
+ transform: entry.domElement.style.transform
1571
+ }
1572
+ });
1573
+ shadowElement.style.setProperty("left", `${computedLeft}px`, "important");
1574
+ shadowElement.style.setProperty("top", `${computedTop}px`, "important");
1575
+ shadowElement.style.setProperty("transform", "rotate(0deg)", "important");
1564
1576
  entry.domElement.parentNode?.insertBefore(shadowElement, entry.domElement);
1565
1577
  entry.domShadowElement = shadowElement;
1566
1578
  return;