[web] Remove incorrect preserveAspectRatio logic

This commit is contained in:
Mikael Sand
2019-03-09 06:28:25 +02:00
parent f9c9ac8920
commit 53e91fcdfc
-6
View File
@@ -91,12 +91,6 @@ function prepare(props) {
styles,
);
// We provide a default of `xMidYMid` if aspectRatio is not specified with align information.
const preserve = clean.preserveAspectRatio;
if (preserve && preserve !== 'none' && !~preserve.indexOf(' ')) {
clean.preserveAspectRatio = 'xMidYMid ' + preserve;
}
return clean;
}