Opened 10 years ago
Closed 10 years ago
#13205 closed bug (notabug)
element.height() alters the height of an element incorrectly when "box-sizing" is set to "border-box"
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.8.3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
when "box-sizing" is set to "border-box", calling .height(x) on an element causes it's real height to be greater than x by the magnitude of (2 x border-width)
Note: See
TracTickets for help on using
tickets.
.height()
is always content height.http://blog.jquery.com/2012/08/16/jquery-1-8-box-sizing-width-csswidth-and-outerwidth/