add normal mode

This commit is contained in:
Harvey committed 2020-05-15 19:11:03 +08:00
1 parent 72937ab1ed
commit 2650acc953
6 files changed
+33 -30

No files matched your search

+5 -5
View File
@@ -23,16 +23,16 @@ export default function resizeMix(art, player) {
setStyle($player, 'width', '100%');
setStyle($player, 'height', `${percentage}%`);
}
art.emit('autoSizeChange', {
width: player.width,
height: player.height,
});
} else {
removeClass($container, 'art-auto-size');
setStyle($player, 'width', null);
setStyle($player, 'height', null);
art.emit('autoSizeRemove');
}
art.emit('autoSizeChange', {
width: player.width,
height: player.height,
});
},
});
}