From 0eaf9db416c2088191f32c11b80c8930f82be618 Mon Sep 17 00:00:00 2001 From: Matthias Mees Date: Thu, 15 Jan 2015 19:31:55 +0100 Subject: [PATCH] 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 --- templates/2k11/admin/serendipity_editor.js.tpl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/2k11/admin/serendipity_editor.js.tpl b/templates/2k11/admin/serendipity_editor.js.tpl index 6cb07c6f..dde1304e 100644 --- a/templates/2k11/admin/serendipity_editor.js.tpl +++ b/templates/2k11/admin/serendipity_editor.js.tpl @@ -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); + }); } }