If you use mediacrush.js, it'll handle sizing the frame for you. If not, you can check out how the frame communicates with mediacrush.js on our GitHub, here: https://github.com/MediaCrush/MediaCrush/blob/master/scripts/mediacrush.js#L91
I'm glad to hear that MC is working better now, thanks!