You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lightning components in a body tag with an offset (such as in Storybook) don't get the correct left + top offsets. This leads to all divs being off by whatever the body tag is offset by. I think this is because contentRect is not returning the true left and top offset like getBoundingClientRect. I think the easy fix is line 207 should be: updateRootStyleFromCanvas(entries[0].target.getBoundingClientRect());
And that fixes the issue.
Current Issue: Not getting Left + Top correctly
The text was updated successfully, but these errors were encountered:
chiefcll
pushed a commit
to chiefcll/Lightning
that referenced
this issue
Oct 26, 2022
This PR
477060e
Lightning components in a body tag with an offset (such as in Storybook) don't get the correct left + top offsets. This leads to all divs being off by whatever the body tag is offset by. I think this is because contentRect is not returning the true left and top offset like
getBoundingClientRect
. I think the easy fix is line 207 should be:updateRootStyleFromCanvas(entries[0].target.getBoundingClientRect());
And that fixes the issue.
Current Issue: Not getting Left + Top correctly
The text was updated successfully, but these errors were encountered: