summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-09-09 21:58:16 -0700
committerBharat Mediratta <bharat@menalto.com>2010-09-09 21:58:16 -0700
commit6e62d604a45b9bf1a60d04effb7eb08e7d15463c (patch)
treea8fb31c23a435bcceb716cf975269bd25813eb0f /themes
parent4f058d2ac2d11c9e74c4975bb0844eb7654b51fe (diff)
Resize the .g-item to contain the rotated image, and make all
.g-item's the same height and realign the photo vertically, both on the .g-item and the hover placeholder. Fixes ticket #1354.
Diffstat (limited to 'themes')
-rw-r--r--themes/wind/js/ui.init.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/themes/wind/js/ui.init.js b/themes/wind/js/ui.init.js
index 7637ad80..e5071dc1 100644
--- a/themes/wind/js/ui.init.js
+++ b/themes/wind/js/ui.init.js
@@ -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();
});
}