Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

@rotationStart, calc _centerX/Y based on bounds #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

woutervroege
Copy link

@woutervroege woutervroege commented Nov 5, 2020

offsetLeft & offsetTop are relative to the element first positioned (not static) ancestor element.

This causes the input-knob to break when placed in any non-statically positioned (e.g. absolute) element. Using getBoundingClientRect() fixes this issue.

Signed-off-by: Wouter Vroege wouter@woutervroege.nl

offsetLeft & offsetTop are relative to the element first positioned (not static) ancestor element.

This causes the input-knob to break when placed in any non-statically positioned (e.g. absolute) elements. Using getBoundingClientRect() fixes this issue.

Signed-off-by: Wouter Vroege <wouter@woutervroege.nl>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant