diff --git a/css/trending.css b/css/trending.css index 87988337..44987a07 100644 --- a/css/trending.css +++ b/css/trending.css @@ -52,7 +52,7 @@ div.jqcloud { div.jqcloud span { padding: 4px; } -.tag-cloud.invisible { +div.jqcloud.invisible { position: absolute; top: -9999px; left: -9999px; diff --git a/js/trending.js b/js/trending.js index 3bf05331..f25e65d6 100644 --- a/js/trending.js +++ b/js/trending.js @@ -39,7 +39,8 @@ function reposition() { loading.css('margin-left', -pos.left + 'px') .css('margin-top', -pos.top+20 + 'px'); - $(".tag-cloud").replaceWith(loading).removeClass('invisible') + $(".tag-cloud").replaceWith(loading); + loading.addClass('tag-cloud').removeClass('invisible') .parent().css('overflow-x', 'clip'); $(".loading").remove(); @@ -61,7 +62,7 @@ function loadCloud() { lastsize = width; loading = $("