-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
breakpoints with different slidesPerColumn issue #4658
Comments
Would be good to see the live demo using the template from issue template at first |
Web page is not public yet, and it is password protected, can you give me some contact, to send you details in PM? |
Please use CodeSandbox or similar to illustrate the issue |
Hello, there you have it: https://56n2k.csb.app/ This is excessively simplifed compared to my page, but demonstrates the issue. Open the demo in resolution over 768px horizontal, and try resizing to less than that and back. |
I solved a problem by "hack", inserting clearing margin function on breakpoint event:
However, it would be nice to see it properly fixed :) |
Hello, is the demo I provided in comments above adequate? If it is, then you could close "missing demo" issue |
yes, thanks, should be fixed now |
Seems bug still exists. We can see problem at resize time: https://uyrrf.csb.app/ - just added breakpoints to example with slidesPerColumn param. |
I have following initalize settings (I use JSON to load inital settings):
If page is resized (i.e. mobile orientation changed), and not reloaded, some of margins which were previously set for onte type of layout are not cleared and result in incorrectly shown layout.
More specifically: if screen is above 768px, 4th slide will get margin of 20px on top. However, when changing screen to less than 768px (without reloading), 4th slide will still have margin 20px, although this margin should be cleared, because now it is on top. Other margins are correctly set, it is only a matter of fixing clearing of certain margins when resizing.
(update) Demo:
https://56n2k.csb.app/
The text was updated successfully, but these errors were encountered: