fixed mobile vids behaviour

This commit is contained in:
Bachir Soussi Chiadmi
2015-04-15 19:18:57 +02:00
parent b1228c60f0
commit 4a460b25d1
3 changed files with 98 additions and 89 deletions
+6 -1
View File
@@ -861,14 +861,19 @@ jQuery(document).ready(function($) {
.each(this.redimVideo.bind(this))
.each(this.setVidsEvents.bind(this));
var marge = (_container.w-this.dimvideo.w)/4;
this.$vids_container.css({
width:this.dimvideo.w+marge,//*1.2,
height:this.dimvideo.h,
// height:this.dimvideo.h,
marginLeft:marge
});
if(!_is_mobile){
this.$vids_container.css({
height:this.dimvideo.h
});
// add a mask on top of each iframe to avoid bad interaction with vimeo
this.$vids.after('<div class="mask"></div>');
// create the slider with peppermint