diff options
Diffstat (limited to 'src/content/PlaceHolder.js')
-rw-r--r-- | src/content/PlaceHolder.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/content/PlaceHolder.js b/src/content/PlaceHolder.js index 4c860ec..7043caf 100644 --- a/src/content/PlaceHolder.js +++ b/src/content/PlaceHolder.js @@ -55,6 +55,9 @@ var PlaceHolder = (() => { for (let p of props) { destStyle[p] = srcStyle[p]; } + if (src.offsetTop < 0 && src.offsetTop <= (-src.offsetHeight)) { + destStyle.top = "0"; // fixes video player off-display position on Youtube + } destStyle.display = srcStyle.display !== "block" ? "inline-block" : "block"; } |