developit / developit/simple-element-resize-detector

Resize events only work if iframe in viewport

オープン
#10 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug help wanted
主要言語
JavaScript
スター
189
フォーク
4
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。