-
Notifications
You must be signed in to change notification settings - Fork 133
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
Doesn't correctly resize #152
Comments
Playing around a little, this only seems the case if the present value is a pixelvalue, values in percent or I believe this is because when a width is set, the |
I do something like this, for example: window.addEventListener('load', function () {
window.juxtapose.sliders.forEach(function (slider) {
slider.wrapper.style.width = '100%'; // fit slider width to its parent container
slider.setWrapperDimensions(); // refresh slider heights
});
}
`` |
Hi there I had the same issue when resizing the windows on Safari ( Mac ). |
Quick fix: CSS to add:
In javascript file replace this ( line 443 in juxtapose.js ):
By this:
|
I noticed that the slider only re-sets the width and height on the wrapper of
width
is not set. When manually clearing the attribute it immediately gets set on resizing, when one is there already it isn't changed.The text was updated successfully, but these errors were encountered: