Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maintain aspect ratio #172

Closed
danvass opened this issue Mar 21, 2017 · 2 comments
Closed

Maintain aspect ratio #172

danvass opened this issue Mar 21, 2017 · 2 comments

Comments

@danvass
Copy link

danvass commented Mar 21, 2017

My videos are portrait and I want to maintain aspect ratio of the video without having the element unnecessarily wide. I tried to use react-rectangle to keep the aspect ratio whilst setting width and height to 100% to make sure the element fills up the parent container but this didn't quite result in what I expected. Any tips on how to make the video keep a portrait aspect ration (9:16) and ensure that the element's width and height wrap the video?

@cookpete
Copy link
Owner

Does this fiddle get you anywhere? This looks like a similar problem to #145

@danvass
Copy link
Author

danvass commented Mar 26, 2017

@cookpete That's how I ended up getting it working, thanks.

@danvass danvass closed this as completed Mar 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants