-
Notifications
You must be signed in to change notification settings - Fork 244
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
Looks like it's not working if width isn't specified #21
Comments
Hey @siamkreative, this feature is currently not supported, because I didn`t want to handle styling in my JavaScript. But if you want to set a own width of the slides dependent on the browser width you can always listen to the resize event and call lory.reset() afterwards which would re-initialize lory with the current widths of the slide elements. Maybe this is a little Add-on. I really try to keep lory as lightweight as possible! The way to go would be to use the callbacks in the options and the public-api. If you need something that you can actually implement this, just tell me. cheers Max |
I'm not sure you understood me correctly. I meant that Lory didn't work with PREREQUISITED HTML & PREREQUISTED CSS STYLES: I had to manually specify a width in pixels for the |
Yes I understood you. I didn Thanks for the advice! cheers Max |
When I copied the markup + Prerequisted CSS styles from the demo page, slider didn't work. It seems to be because in the demo you actually specify a fixed width for the
li
element.So my question is... is there a way to make it work out of the box, without specifying a width? I feel like it's a bit annoying to specify a fixed width in a responsive context.
The text was updated successfully, but these errors were encountered: