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

Feature: Reposition on window resize (without .reload()) #57

Open
artemsky opened this issue Apr 7, 2016 · 1 comment
Open

Feature: Reposition on window resize (without .reload()) #57

artemsky opened this issue Apr 7, 2016 · 1 comment

Comments

@artemsky
Copy link
Contributor

artemsky commented Apr 7, 2016

Hi.
I am pretty sure that you need to add "reposition" event.

Explaining why:

At my webapp, by selecting slider item its load content to another window, which has an ifarme inside (youtube video).
1st i tried to use Slider.reload() on window.resize() event
But i met a problem after i opened my video at full screen. It called window.resize() event. And slider did reload, and my ifame with my video just gone.

So i found solution by myself, and hope you add this event, because i like your lib!

let width = 0; this.Slider.find("li").each(function(){ width+= $(this).outerWidth(); }); this.Slider.css("transform", translate3d(($(window).width() - width - this.Slider.find(".itemslide-active").outerWidth())/2 + "px, 0px, 0px)");`

@DarioLopes
Copy link

Same here

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