diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-09-09 21:25:23 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-09-09 21:25:23 -0700 |
commit | 6211ed69d7a07d88b18c4db2928663c2cb76b1ba (patch) | |
tree | bdef48a467b154aacd814fecae80a2c8c8b1aba5 /themes | |
parent | 32878ebfdce943271824891639ab0384053bbadd (diff) |
Vertically realign thumbnails after rotation so that they stay
centered. Partial fix for #1354.
Diffstat (limited to 'themes')
-rw-r--r-- | themes/wind/js/ui.init.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/themes/wind/js/ui.init.js b/themes/wind/js/ui.init.js index a4fc0e2f..7637ad80 100644 --- a/themes/wind/js/ui.init.js +++ b/themes/wind/js/ui.init.js @@ -93,6 +93,11 @@ $(document).ready(function() { $("#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(); + }); } // Photo/Item item view |