add autoSizeChange

This commit is contained in:
Harvey committed 2020-05-15 19:13:59 +08:00
1 parent 2650acc953
commit b70c11ede6
3 files changed
+12 -11

No files matched your search

+6 -5
View File
@@ -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
});
}
});
}