Force user styles a bit harder

This commit is contained in:
Tamius Han 2020-10-21 21:42:22 +02:00
parent 43b136ca46
commit 48167623ff

View File

@ -676,7 +676,7 @@ class Resizer {
// add remaining elements // add remaining elements
if (stretchFactors) { 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 // important — guarantees video will be properly aligned
styleArray.push("top: 0px !important; left: 0px !important; bottom: 0px !important; right: 0px;"); styleArray.push("top: 0px !important; left: 0px !important; bottom: 0px !important; right: 0px;");