Skip to content

Commit

Permalink
Resize the .g-item to contain the rotated image, and make all
Browse files Browse the repository at this point in the history
.g-item's the same height and realign the photo vertically, both on
the .g-item and the hover placeholder.  Fixes ticket #1354.
  • Loading branch information
bharat committed Sep 10, 2010
1 parent 4f058d2 commit 6e62d60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion themes/wind/js/ui.init.js
Expand Up @@ -90,13 +90,15 @@ $(document).ready(function() {
$(this).css("top", 0).css("left", 0);
// Remove the placeholder and hover class from the item
$(this).removeClass("g-hover-item");
$(this).gallery_valign();
$("#g-place-holder").remove();
}
);

// Realign any thumbnails that change so that when we rotate a thumb it stays centered.
$(".g-item").bind("gallery.change", function() {
$(this).gallery_valign();
$(this).height($(this).find("img").height() + 2);
$(".g-item").equal_heights().gallery_valign();
});
}

Expand Down

0 comments on commit 6e62d60

Please sign in to comment.