Make reading element dimensions work regardless of transforms #637
Labels
core
This is related to the core package
feature request
New feature or request
resolved
This issue is resolved
Feature request is related to
Is your feature request related to an issue?
Originally posted by javiergonzalezGenially
When using the carousel inside a container with a scale transform applied the carousel doesn't work properly because it uses to measure nodes getBoundingClientRect, which returns a rect which is already scaled.
Describe the solution you'd like
Originally posted by javiergonzalezGenially
The proposed fix (tested working in the playground) uses instead offsetLeft/offsetWidth etc, which are unscaled.
The text was updated successfully, but these errors were encountered: