Skip to content

Commit

Permalink
fixed ambiguity around multiple cloud divs
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketMan committed Dec 13, 2024
1 parent 525c6d1 commit af1ba63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion css/trending.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ div.jqcloud {

div.jqcloud span { padding: 4px; }

.tag-cloud.invisible {
div.jqcloud.invisible {
position: absolute;
top: -9999px;
left: -9999px;
Expand Down
5 changes: 3 additions & 2 deletions js/trending.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -61,7 +62,7 @@ function loadCloud() {
lastsize = width;

loading = $("<div>", {
class: "tag-cloud invisible"
class: "jqcloud invisible"
});

content.append(loading);
Expand Down

0 comments on commit af1ba63

Please sign in to comment.