This is handled via base class
This commit is contained in:
parent
f8e3a39620
commit
1e70ea51cf
@ -670,11 +670,6 @@ class Resizer {
|
||||
|
||||
const styleArray = this.buildStyleArray('', extraStyleString)
|
||||
|
||||
// sometimes, site designers will center <video> by setting margin: to something. We do not like that, as
|
||||
// it prevents extension from working properly
|
||||
// no `height: inital !important;` because that breaks youtube.
|
||||
styleArray.push('margin: 0px 0px 0px 0px !important; width: initial !important; align-self: start !important; justify-self: start !important;');
|
||||
|
||||
// add remaining elements
|
||||
if (stretchFactors) {
|
||||
styleArray.push(`transform: translate(${translate.x}px, ${translate.y}px) scale(${stretchFactors.xFactor}, ${stretchFactors.yFactor}) !important;`);
|
||||
|
Loading…
Reference in New Issue
Block a user