From 48167623ffe5d1977e065e6b04af796830531e34 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Wed, 21 Oct 2020 21:42:22 +0200 Subject: [PATCH] Force user styles a bit harder --- 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 7dcf149..3b18327 100644 --- a/src/ext/lib/video-transform/Resizer.js +++ b/src/ext/lib/video-transform/Resizer.js @@ -676,7 +676,7 @@ class Resizer { // add remaining elements if (stretchFactors) { - styleArray.push(`transform: translate(${translate.x}px, ${translate.y}px) scale(${stretchFactors.xFactor}, ${stretchFactors.yFactor});`); + 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("top: 0px !important; left: 0px !important; bottom: 0px !important; right: 0px;");