Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes #11004: getWH incorrectly removes padding and border width when box-sizing is border-box #734

Closed
wants to merge 3 commits into from

Conversation

mikesherov
Copy link
Member

.css('width') should respect box-sizing, where as .width() should always return the content-width, as defined by the API. Here is a perf showing that it's a tiny drop in performance for .css('width') except when box-sizing is border-box because in that case, .css('width') is equivalent to offsetWidth.

It's not 30 bytes, like @timmywil asked for, but it's close enough...

jQuery Size - compared to last make
  252107   (+860) jquery.js
   93724   (+134) jquery.min.js
   33304    (+44) jquery.min.js.gz

@dmethvin
Copy link
Member

Landed in 1.8pre: d7217cc

@dmethvin dmethvin closed this Apr 10, 2012
@lock lock bot locked as resolved and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants