Skip to content

Conversation

@Han5991
Copy link
Contributor

@Han5991 Han5991 commented Apr 30, 2025

fix: #7582

Changes

  • Use borderBoxSize or contentBoxSize from ResizeObserverEntry instead of contentRect
  • Fallback to contentRect for backward compatibility
  • add use-resize-observer.test.tsx
  • add UseResizeObserver.story.tsx

…urate box size calculation (mantinedev#7582)

- add use-resize-observer.test.tsx
- add UseResizeObserver.story.tsx
@Han5991 Han5991 force-pushed the feature/fix-useResizeObserver branch from fd2a7a5 to 3792955 Compare April 30, 2025 14:02
- remove window.getComputedStyle
- rect x,y,top,left,right,bottom update
@Han5991 Han5991 force-pushed the feature/fix-useResizeObserver branch from b0b4cbe to 3664e79 Compare May 1, 2025 00:24
@Han5991 Han5991 requested a review from rtivital May 1, 2025 00:31
@rtivital rtivital merged commit db86c68 into mantinedev:master May 2, 2025
1 check passed
@rtivital
Copy link
Member

rtivital commented May 2, 2025

Thanks!

@Han5991 Han5991 deleted the feature/fix-useResizeObserver branch June 22, 2025 10:00
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.

useResizeObserver() returns incorrect rect values when measuring border-box or device-pixel-content-box

2 participants