macy.js icon indicating copy to clipboard operation
macy.js copied to clipboard

useContainerForBreakpoints doesn't work

Open fernandodelgadomtech opened this issue 5 years ago • 2 comments

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

fernandodelgadomtech avatar Mar 21 '20 02:03 fernandodelgadomtech

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

ihewro avatar Jun 01 '20 01:06 ihewro

@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);

jrmd avatar Mar 08 '21 10:03 jrmd