From fe1ad85d293c113312e6200ff67ab1a11d3d4951 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Thu, 25 Apr 2013 19:58:01 +0200 Subject: [PATCH] auto-height parent-container if info-panels on customer-index are too big, fixes #1198 Signed-off-by: Michael Kaufmann (d00p) --- templates/Froxlor/assets/js/main.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/templates/Froxlor/assets/js/main.js b/templates/Froxlor/assets/js/main.js index cf4cbb30..487843c9 100644 --- a/templates/Froxlor/assets/js/main.js +++ b/templates/Froxlor/assets/js/main.js @@ -29,6 +29,13 @@ $(document).ready(function() { $(".main").css('min-height', $("nav").height() - 34); $(".dboarditem:last").css('min-height', $(".dboarditem:first").height()); $(".dboarditem:first").css('min-height', $(".dboarditem:last").height()); + if ($(".dboarditem").length > 0) { + var plush = 20; + if ($(".messagewrapperfull").length > 0) { + plush+=$(".messagewrapperfull").height(); + } + $("article").css('height', $(".dboarditem:last").height()+plush); + } // set focus on username-field if on loginpage if ($(".loginpage").length != 0) {