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
width 100% not working correctly #317
Comments
HI @seltix5, Could you attach a screenshot or gif of the issue? |
hi, |
Unfortunately I couldn't recreate it. I tried at a few different screen sizes (on Mac chrome) and it all seemed fine. Could you tell me a bit more about your environment, and also post a screenshot/gif if possible. |
hi, |
Thanks that's very helpful. The issue appears to be caused by invisible scrollbars being added and removed as the container height grows. In mac, scrollbars don't take up physical space in the viewport, but in Windows they do which is why I didn't see it. This is more to do with styling and how the browser calculates element sizes during transitions than anything to do with MixItUp. I've had a play around but I haven't found a good solution yet, other than to suggest applying You may also want to experiment with other types of styling for the grid (flex-box, floats), or other transform effects to see if that has any effect. I'll leave this open and hopefully I can come up with some workaround in the near future. If you do come across a better solution in the meantime, please do let me know. Thanks |
Quick update: I've just had some luck by applying a minimum height to the container, for example I applied Let me know if that helps! |
hi, |
cant you add a resize event to update the container fixed width during animation? |
hi there! |
Thanks for the additional info. You're quite right – in this situation, there is no need for a translate to applied at all for a simple fade and scale in effect, although one would hope there would be no negative side effects to applying a translate of 0px. I will try to look further into this in the next few days. |
glad to help. |
so, after further search i could find the transition happend because the interPosData position is diferent of finalPosData here : |
Thanks again setlix, that makes perfect sense. I can envisage a fix now via the configuration object. Hopefully I'll get a patch out over the weekend. |
no problem, good luck and nice work your plugin is great :D ^^ |
Hi @seltix5, I've just pushed v3.1.11. This should fix the issue. https://github.com/patrickkunka/mixitup/releases/tag/v3.1.11 Please let me know if it works for you. |
it does work now, but i still use the "height auto !important" because of the fixed height, but the width is responsive now and the translate problem is apparently solved. |
Great, BTW - if you don't want MixItUp to animate the container width/height, you can just set: {
animation: {
animateResizeContainer: false
}
} Then you shouldn't need any |
hi,
first of all, great work! beautifull plugin :D
now the problem, you can reproduce the problem with the demo "loading-animation" adding about 80 or more "mix" elements to the container (i test this in chrome and firefox).
The problem is : while the loading animation is runing the "mix" elements wont use 100% of the width, only after the loading animation finish they all update to the correct width.
Thank.
The text was updated successfully, but these errors were encountered: