-
Notifications
You must be signed in to change notification settings - Fork 246
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
[BUG] Width calculation for percentage widths incorrect #148
Comments
I have this issue too and it's affecting my design a lot. Has anyone found a fix for it? |
I have the same issue with Bootstrap columns. Initializing filterizr with a small negative value for gutterPixels (e.g. -1) seems to work around the bad calculation. |
This fixed the problem. Thank you so much for the fix. 😍 |
Describe the bug
When using a responsive grid with grid items that have their widths defined in percentage, filterizr does not correctly calculate the width in pixels of each grid item.
Filterizr version
2.2.4 - Vanilla JS version
To Reproduce
I've created a codepen that illustrates the issue.
Desktop (please complete the following information):
Additional context
I think it might be related to #33, although the issue is marked as fixed already in 2.2.0
The text was updated successfully, but these errors were encountered: