aullman/opentok-layout-js

Small items are smaller than they could be.

Closed this issue · 2 comments

I am experiencing a similar issue to #105, where small videos to the right of big videos are right aligned on a wide monitor, but my issue is that the videos could be larger while maintaining the aspect ratio. Is this intended behavior?
Screen Shot 2022-03-01 at 11 42 35 PM
Screen Shot 2022-03-01 at 11 50 11 PM

Yes that is intended behaviour but you can work around it. There is a bigPercentage which you set which hard codes the percentage of space that the big area will take up. But there is also a minBigPercentage. If you set that then you can make the big area take up less space if it doesn't need to take it all up. It looks like right now you have the big percentage set to 0.8 (80%). But you probably want to set the minBigPercentage to something like 0.6. That will allow the small widgets to get bigger in this example and remove some of that extra space in between.

Thank you for your quick reply, that works perfectly.