Merge commit 'upstream/master'

This commit is contained in:
Andy Staudacher
2010-02-14 17:08:38 -08:00
2 changed files with 17 additions and 8 deletions
+9 -6
View File
@@ -275,6 +275,13 @@ td {
z-index: 1;
}
/* Search results ~~~~~~~~~~~~~~~~~~~~~~~~ */
#g-content #g-search-results {
margin-top: 1em;
padding-top: 1em;
}
/* Individual photo content ~~~~~~~~~~~~~~ */
#g-item {
@@ -300,14 +307,10 @@ td {
padding-right: 1.2em;
}
#g-content #g-search-results {
margin-top: 1em;
padding-top: 1em;
}
/* In-line editing ~~~~~~~~~~~~~~~~~~~~~~ */
#g-in-place-edit-message {
background-color: #FFF;
background-color: #fff;
}
/** *******************************************************************
+8 -2
View File
@@ -43,7 +43,7 @@ $(document).ready(function() {
});
}
// Album view only
// Album and search results views
if ($("#g-album-grid").length) {
// Set equal height for album items and vertically align thumbnails/metadata
$('.g-item').equal_heights().gallery_valign();
@@ -64,7 +64,13 @@ $(document).ready(function() {
$(this).height("auto");
var context_menu = $(this).find(".g-context-menu");
var adj_height = $(this).height() + context_menu.height();
$(this).height(adj_height);
if ($(this).next().height() > $(this).height()) {
$(this).height($(this).next().height());
} else if ($(this).prev().height() > $(this).height()) {
$(this).height($(this).prev().height());
} else {
$(this).height(adj_height);
}
},
function() {
// Reset item height and position