This commit is contained in:
Harvey committed 2021-12-31 16:47:52 +08:00
1 parent 3523cb2149
commit a74c6194be
4 files changed
+7 -6

No files matched your search

@@ -2,6 +2,7 @@ import { setStyle, hasClass, addClass, removeClass, def } from '../utils';
export default function autoHeightMix(art, player) {
const { $container, $video } = art.template;
const heightCache = $container.style.height;
def(player, 'autoHeight', {
get() {
@@ -18,7 +19,7 @@ export default function autoHeightMix(art, player) {
art.emit('autoHeight', height);
}
} else {
setStyle($container, 'height', null);
setStyle($container, 'height', heightCache);
removeClass($container, 'art-auto-height');
art.emit('autoHeight');
}