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

Add computedstyle option for calculating the width #5559

Merged
merged 1 commit into from Jul 9, 2019
Merged

Conversation

kevin-brown
Copy link
Member

This allows for more accurate resolution of the width when compared
to the resolve method. This is more relevant for jQuery 1.x, where
the resolve method cannot find the width of a hidden select box,
but it also applies to newer versions of jQuery where the width()
method provided by jQuery doesn't fully match getComputedStyle().

Fixes #3278
Fixes #5502
Closes #5259

This pull request includes a

  • Bug fix
  • New feature
  • Translation

The following changes were made

  • Added computedstyle option
  • Added tests to make sure that it works across all jQuery versions

This allows for more accurate resolution of the width when compared
to the `resolve` method. This is more relevant for jQuery 1.x, where
the `resolve` method cannot find the width of a hidden select box,
but it also applies to newer versions of jQuery where the `width()`
method provided by jQuery doesn't fully match `getComputedStyle()`.

Fixes #3278
Fixes #5502
Closes #5259
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issues with responsive width
2 participants