mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-27 09:41:20 -08:00
4.1.2
This commit is contained in:
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');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user