Skip to content
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

useContainerForBreakpoints doesn't work #72

Open
fernandodelgadomtech opened this issue Mar 21, 2020 · 2 comments
Open

useContainerForBreakpoints doesn't work #72

fernandodelgadomtech opened this issue Mar 21, 2020 · 2 comments

Comments

@fernandodelgadomtech
Copy link

Hello,

in the following example, I'm setting up a div with the CSS property resize to test useContainerForBreakpoints and macy.js is not reacting to the breakpoints when I resize it.

The window one works just fine.

https://js-roryda.stackblitz.io/ Example only
https://stackblitz.com/edit/js-roryda Code

@ihewro
Copy link

ihewro commented Jun 1, 2020

use the lastest version may solve this problem
I have met this problem because I use the http://macyjs.com/assets/js/macy.min.js which verson is 2.0.0 while lastest version is 2.5.1

@jrmd
Copy link
Member

jrmd commented Mar 8, 2021

@fernandodelgadomtech
The example you have allows you to resize the container without resizing the document. We dont listen on containers resize. So add an event listener on the containers resize event that calls macy_instance.recalculate(true, true);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants