olton / Metro-UI-CSS

Impressive component library for expressive web development! Build responsive projects on the web with the first front-end component library in Metro Style. And now there are even more opportunities every day!
http://metroui.org.ua/
MIT License
7k stars 1.97k forks source link

no-visible class on Window component hides the content and not the Window #1868

Open AnotherSoul opened 2 years ago

AnotherSoul commented 2 years ago

Hello, I'm really sorry opening another issue with the Window component... Maybe I'm not using it in the right way, but it seems that there's an issue with the no-visible class.

According to the documentation, "hide() | Add class .no-visible to window". To hide a window on page load I added the no-visible class to my Window component, but the Window remains visible; only the content vanishes. Same issue happens when using $('#my_window').hide() It's working when using the Metro.window methods, but I would really prefer being able to start with an hidden Window using CSS classes instead of a JS action.

https://codepen.io/SuperJD/pen/rNJdNWW

Regards