Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setFullscreen should reset shift property when changing aspect ratio #33

Open
brunomuler opened this issue Jul 18, 2014 · 1 comment
Open

Comments

@brunomuler
Copy link

Shouldn't the css property top or left be removed when changing aspect ratio on setFullscreen function? For example: you have left set to -100px shift, when you resize your window to the opposed aspect ratio so you have to add top ratio, the previous -100px are still set.

@brunomuler brunomuler changed the title setFullscreen should reset shift from onde aspect rayio to another setFullscreen should reset shift property when changing aspect ratio Jan 6, 2015
@vrMarc
Copy link

vrMarc commented Jan 30, 2015

@brunomuler how did you resolve this? I'm testing this at the moment:

$(window).resize(function() {
$('video').css('left', '0');
});
$(window).trigger('resize');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants