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

V5.0.0 #1205

Closed
wants to merge 88 commits into from
Closed

V5.0.0 #1205

wants to merge 88 commits into from

Conversation

davidjbradshaw
Copy link
Owner

@davidjbradshaw davidjbradshaw commented Feb 2, 2024

New features

Changes

  • Changed default height calculation to documentElementBoundingClientRect
  • Renamed values returned by getPageInfo() to match modern DOM names
    • scrollLeft -> scrollX and scrollTop -> scrollY
  • Renamed onInit() -> onReady() , and added deprecation warning
  • Removed deprecated values returned by getPageInfo()
  • Removed added margin calculation from bodyOffset, use bodyOffsetMargin for old behaviour
  • Removed undocumented grow height calculation method
  • Removed deprecated v3 methods. Calls to v3 methods will now fail, rather than be a warning
  • Removed mouse, touch and resize event listeners, as not required alongside ResizeObserver
  • Removed jQuery from examples
  • Removed legacy browser support, please use V4 of iframe-reszier if you still require support for older platforms

Fixes

Chore

  • Refactored code to more modern JavaScript
  • Updated deps

Todo

@davidjbradshaw davidjbradshaw changed the title Resize observer V5.0.0 Feb 2, 2024
test-main.js Dismissed Show dismissed Hide dismissed
@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

src/iframeResizer.contentWindow.js Dismissed Show dismissed Hide dismissed
src/iframeResizer.js Dismissed Show dismissed Hide dismissed
@davidjbradshaw davidjbradshaw deleted the resizeObserver branch June 8, 2024 09:46
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.

1 participant