maslianok / react-resize-detector

A Cross-Browser, Event-based, Element Resize Detection for React
http://maslianok.github.io/react-resize-detector/
MIT License
1.25k stars 91 forks source link

react resize hook doesn't detect vertical resize #216

Closed Ahmed-Dghaies closed 2 years ago

Ahmed-Dghaies commented 2 years ago

I'm using this library in my react project as a hook and it works very well when i resize the width and height of the window but if i resize the window only vertically it doesn't trigger any events

maslianok commented 2 years ago

I'm almost sure there is some problem with block size. For example, it doesn't resize when you resize the window. It would be great if you can provide a code snippet.

I'll close the issue to keep the repo clean, but we will reopen it once you return.