-
Notifications
You must be signed in to change notification settings - Fork 264
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
Comments
👍 |
This undocumented behavior is described in an open issue: jquery/api.jquery.com#98
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 |
This update should be prioritized. |
@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 |
In case it's not clear, this also applies to innerHeight and outerHeight as well. |
usage:
innerWidth(number)
will subtract the padding, in pixels from number, and set the css width of the element to the differenceouterWidth(number)
will subtract the padding and border, in pixels from number, and set the css width of the element to the differenceouterWidth(number, true)
will subtract the padding and border and margin, in pixels from number, and set the css width of the element to the differenceThe text was updated successfully, but these errors were encountered: