mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-19 03:11:20 -08:00
add autoSizeChange
This commit is contained in:
1 parent
2650acc953
commit
b70c11ede6
3 files changed
+12
-11
No files matched your search
@@ -2062,16 +2062,17 @@
|
||||
setStyle($player, 'width', '100%');
|
||||
setStyle($player, 'height', "".concat(_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
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user