Skip to content

.size() ignores scaled elements #14

Description

@itsrachelfish

.size() only calculates the original size of an element, ignoring any css transforms like rotation or scaling. Unfortunately the result returned by .getBoundingClientRect() varies considerably. For example it works fine for scaled elements on their own, but rotated elements will give a box containing the entire area they cover.

It might be necessary to detect CSS scaling and use that to modify the calculated output.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions