wnr / element-resize-detector

Optimized cross-browser resize listener for elements.
MIT License
1.32k stars 118 forks source link

Scroll detection element sometimes causing page-level scrollbars #40

Closed AntonTrollback closed 8 years ago

AntonTrollback commented 8 years ago

Can happen when the ERD enabled element is positioned close to the page boundaries.

Fixed by wrapping .erd_scroll_detection_container with something like this:

<div style="overflow: hidden; position: absolute; top: 0; right: 0; bottom: 0; left: 0">
  ... 
</div>

Should probably be tested that it doesn't cause new issues.

wnr commented 8 years ago

Fixed in version 1.1.0 ;)