Responsive design and jqcloud
yuka123 opened this issue · comments
Aleksander commented
Any chance to add some options to cancle fixed width\height and fix calculations, and allow integrating this into responsive design?
shaunbrazier commented
+1. Lovely code but really needs to be able to work within a responsive layout. Thanks for your hard work to date.
Lucas Medeiros commented
+1
Chris commented
+1 - i'm currently playing with destroying the element on resize and reinitialising the wordcloud, which is very clunky.
Chris commented
I found this in the wiki, which works:
https://github.com/lucaong/jQCloud/wiki/Resizing
Menny Rachmanny (onemenny) commented
+1
Ana Claudia Carvalho commented
+1
Illia Nechyporenko commented
+1
Illia Nechyporenko commented
To save time and efforts for other folks:
$(window).on('resize',function(){
$(element).css("width", "100%");
$(element).empty().jQCloud(data);
});