A design system for building modern websites and applications.
4.34k
stars
334
forks
source link
The position calculated by the getRectFromDOMWithContainer method needs to be subtracted from the offset of the body #833
Closed
shervinchen closed 5 months ago
Bug report 🐞
Version & Environment
geist-ui/core
: latest versionExpected Behaviour
The position calculated by the getRectFromDOMWithContainer method needs to be subtracted from the offset of the body
Actual results (or Errors)
If body or root element is offset(for example: body or root element has a margin), getRectFromDOMWithContainer can’t get the right position
I think the correct implementation should be: