Skip to content

Document that innerWidth/OuterWidth are now setters as well #98

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

Closed
mikesherov opened this issue Oct 15, 2012 · 5 comments
Closed

Document that innerWidth/OuterWidth are now setters as well #98

mikesherov opened this issue Oct 15, 2012 · 5 comments

Comments

@mikesherov
Copy link
Member

usage:

innerWidth(number) will subtract the padding, in pixels from number, and set the css width of the element to the difference

outerWidth(number) will subtract the padding and border, in pixels from number, and set the css width of the element to the difference

outerWidth(number, true) will subtract the padding and border and margin, in pixels from number, and set the css width of the element to the difference

@jameshfisher
Copy link

👍

pushplay pushed a commit to pushplay/DefinitelyTyped that referenced this issue Nov 4, 2013
This undocumented behavior is described in an open issue:

    jquery/api.jquery.com#98
@phanos
Copy link

phanos commented Dec 26, 2013

This one bit me today while I was searching for where a plug-in was setting inline styles, if it helps in updating the docs, it looks like the behavior change was between 1.7.2 and 1.8.0

@AurelioDeRosa
Copy link
Member

This update should be prioritized.

@dmethvin
Copy link
Member

@AurelioDeRosa A pull request would be a great motivator for this if it's something you'd like to see. Somehow this slipped through without a docs change. http://bugs.jquery.com/ticket/10877

@tnoetzel
Copy link

In case it's not clear, this also applies to innerHeight and outerHeight as well.

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

Successfully merging a pull request may close this issue.

8 participants