-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Slider doesn't update width without triggering component rerender. #1010
Milestone
Comments
GeorgySerga
added a commit
to GeorgySerga/react-slick
that referenced
this issue
Feb 8, 2018
Just add a ref in wrapper:
and doing |
Will try to come up with a better js solution for this. |
8591dac solves the problem. Changes will be released soon. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The issue is the same as here pretty much: #809 ,- without
resize
event, or any other trigger for components to rerender (modification of the props for example) the images inside slider do not adjust their size. Here is an example:I took a look into this and was able to fix this using css
calc()
property, will PR soon.The text was updated successfully, but these errors were encountered: