Skip to content

Vimeo wrapper - setting width and height #238

Open
thomasmery opened this Issue Nov 26, 2012 · 0 comments

1 participant

@thomasmery

Hi,

I am having trouble understanding how width and height are set on a Vimeo video element instance

the code in the wrapper tries to get the width and height from the parent element (a div in my case)

but I could only get it working when setting dimensions as inline styles and replacing line 79 and 80 with :

width: parseInt(parent.style.width)|0 ? parseInt(parent.style.width) : MIN_WIDTH,
height: parseInt(parent.style.height)|0 ? parseInt(parent.style.height) : MIN_HEIGHT,

Also I could not set a width or height in the options when creating the player

I am probably doing something wrong but would lova a little help

thnks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.