Skip to content

Table row height reported incorrectly in Edge #4490

Description

@TPIvan

Description

When css height is specified on tr element (<tr id="myrow" style="height:1px;">) .height() returns this height instead of actual height. The problem is present in Microsoft Edge (42.17134, 44.18362) but not present in Google Chrome ( 77.0.3865.90 ) and Mozilla Firefox (69.0.1). The problem is present since jquery 3.3.0 and was reproduced on earlier versions. And is present on current git version (4.0.0-pre 50871a5)

How to reproduce. Create a table with one row (tr) and one cell (td) with text in the cell. Set the row height to 1px (style="height:1px;"). JQuery .height() on the row should return at least font height but actually returns 1 in Edge.

Link to test case

https://codepen.io/TPIvan/pen/aboxZaQ

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions