Width and height are being added to the outer-wrapper div with a style attribute. This is breaking integration with the FitVids module. Is there a reason why this inline css is needed?

I would suggest changing media_vimeo/includes/themes/media-vimeo-video.tpl.php

From:

<div class="media-vimeo-outer-wrapper" id="media-vimeo-<?php print $id; ?>" style="width: <?php print $width; ?>px; height: <?php print $height; ?>px;">
  <div class="media-vimeo-preview-wrapper" id="<?php print $wrapper_id; ?>">
    <?php print $output; ?>
  </div>
</div>

To:

<div class="media-vimeo-outer-wrapper" id="media-vimeo-<?php print $id; ?>">
  <div class="media-vimeo-preview-wrapper" id="<?php print $wrapper_id; ?>">
    <?php print $output; ?>
  </div>
</div>

Comments

RobW’s picture

Status: Active » Closed (duplicate)

Patch in #1715438: Update code and bring it in line with the latest Media Youtube release. Fixes numerous issues. fixes this. Works great with FitVids, as reported in its Media: Youtube version.

Marking this as a duplicate, hope you don't mind.

eusonic’s picture

Thanks RobW. This is perfect.