Sync heights of info overlays

This has been an optical issue for both media files and themes,
which is why my original idea to have large preview files would
not have solved it. However, a CSS-based solution would not have
been solid, either, so I went with a few lines of jQuery to sync
the height with the outer container.

References #230
This commit is contained in:
Matthias Mees 2015-01-15 19:31:55 +01:00
parent 78d7c4984c
commit 0eaf9db416

View File

@ -765,6 +765,12 @@
updateOnResize: true
});
}
// Also sync height of info overlays
$('.equal_heights').each(function() {
var $el = $(this);
var containerHeight = $el.css('min-height');
$el.children('.media_file_preview, .template_preview').css('minHeight', containerHeight);
});
}
}