auto-height parent-container if info-panels on customer-index are too big, fixes #1198

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2013-04-25 19:58:01 +02:00
parent 7a69cf73ba
commit fe1ad85d29

View File

@@ -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) {