ref(video-layout): resize thumbnails first when resizing video area (#3308)

This commit is contained in:
virtuacoplenny 2018-07-26 11:45:04 -07:00 committed by GitHub
parent ca62e902bc
commit 590ad90cd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -854,6 +854,9 @@ const VideoLayout = {
resizeVideoArea(
forceUpdate = false,
animate = false) {
// Resize the thumbnails first.
this.resizeThumbnails(forceUpdate);
if (largeVideo) {
largeVideo.updateContainerSize();
largeVideo.resize(animate);
@ -866,9 +869,6 @@ const VideoLayout = {
if (availableWidth < 0 || availableHeight < 0) {
return;
}
// Resize the thumbnails first.
this.resizeThumbnails(forceUpdate);
},
getSmallVideo(id) {