developit / developit/simple-element-resize-detector
Resize events only work if iframe in viewport
Abierto
bug
help wanted
- Lenguaje dominante
- JavaScript
- Estrellas
- 189
- Forks
- 4
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.