From 84d33a9ccb907cdfdc0284a5aac41d23cb09ff32 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Wed, 23 Dec 2020 02:04:06 +0100 Subject: [PATCH] Revert "Add 'position:absolute' to video css when setting AR (fix #116)" This reverts commit a5ef24a50fb531917894db3062a91329816fdeee. --- src/ext/lib/video-transform/Resizer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ext/lib/video-transform/Resizer.js b/src/ext/lib/video-transform/Resizer.js index 31ee377..eec7daa 100644 --- a/src/ext/lib/video-transform/Resizer.js +++ b/src/ext/lib/video-transform/Resizer.js @@ -672,7 +672,7 @@ class Resizer { styleArray.push(`transform: translate(${translate.x}px, ${translate.y}px) scale(${stretchFactors.xFactor}, ${stretchFactors.yFactor}) !important;`); // important — guarantees video will be properly aligned - styleArray.push("position: absolute; top: 0px !important; left: 0px !important; bottom: 0px !important; right: 0px;"); + styleArray.push("top: 0px !important; left: 0px !important; bottom: 0px !important; right: 0px;"); // important — some websites (cough reddit redesign cough) may impose some dumb max-width and max-height // restrictions. If site has dumb shit like 'max-width: 100%' and 'max-height: 100vh' in their CSS, that