Skip to content

Support undoing CSS transforms when measuring dimensions #396

@vovayatsyuk

Description

@vovayatsyuk

Current behavior

The following code decreases actual dimensions of the element if the parent element uses transform property:

$('.el').height($('.el').height() + 5);

Expected behavior

The element should increase its height.

Codepen

https://codepen.io/vovayatsyuk/pen/qBVYQJJ

Proposed solution

Add a notice to the migration guide to use .css('height') instead?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions