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

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 [email protected]

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 <[email protected]>
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