I’m using contrib-media within article-reveal. I noticed that the widget wasn’t sized the usual 900 x 506 as are the other instances of Media not used inside an Article Reveal. I don’t know what code sets the width and height of `mejs-container`.
I am able to reset the width of the Media component when Article Reveal opens. Article Reveal triggers `device:resize` when it opens. I added the .mejs-container selector to the following function:
```javascript
this.$('audio, video, .mejs-container').width(this.$('.component-widget').width());
```
But I have been unable to discover what sets the height. I tied `setupPlayer` to `article:revealed` but it did not give the right height.
I do not want to set the height to a specific dimension, such as 506px, because this style is being set on the element. It is the wrong height for mobile. I need a more responsive strategy for resizing both width and height of Media when Article Reveal opens.
Thoughts?
To replicate,
1. Download and run cgkineo’s Kitchen Sink (https://github.com/cgkineo/adapt-kitchen-sink)
2. Add a new block with Media to the article with Article Reveal.
3. Rebuild and run.
4. Open the Reveal.
5. Compare the dimension of the Media widget/poster image with the dimensions of Media that appears elsewhere in the course (outside of Article Reveal).
I'm using framework version 2.1.3