From d474f2ec8f3dfd5cae24d5c72afeaac542d2ede7 Mon Sep 17 00:00:00 2001 From: floreno Date: Mon, 11 Apr 2016 06:55:48 +0200 Subject: [PATCH] min-height against height fix for ajax-changing-content --- templates/Sparkle/assets/js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/Sparkle/assets/js/main.js b/templates/Sparkle/assets/js/main.js index 51a2f231..3d0ec460 100644 --- a/templates/Sparkle/assets/js/main.js +++ b/templates/Sparkle/assets/js/main.js @@ -70,7 +70,7 @@ $(document).ready(function() { var snheight = $('#sidenavigation').height(); var mainheight = $('#maincontent').height(); if (snheight > mainheight && !$('#newsfeed').length) { - $('#maincontent').height(snheight); + $('#maincontent').css("min-height", snheight); } // this is necessary for the special setting feature (ref #1010) $.getQueryVariable = function(key) { @@ -219,4 +219,4 @@ $(document).ready(function() { }); autosize($('textarea.shell')); -}); \ No newline at end of file +});