developit / developit/simple-element-resize-detector

Resize events only work if iframe in viewport

Aperta
#10 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug help wanted
Lingua principale
JavaScript
Stelle
189
Fork
4
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

The solution of `top:-100%;` and `margin:1px 0 0;` does not keep the iframe positioned in a viewable area at all times. If the target element is nested in an element with `overflow: hidden` and the target element has a negative top margin or a negative absolute positioned top the resize events stop working.

`top: 0; z-index: -1` seems to fix the issue but I'm not sure what all the consequences are.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.