Fix height of #maincontent if newsfeed is shown

Signed-off-by: Roman Schmerold (BNoiZe) <bnoize@froxlor.org>
This commit is contained in:
Roman Schmerold (BNoiZe)
2014-06-01 22:02:48 +02:00
parent 38599ec4b9
commit 9b0cc70542

View File

@@ -53,7 +53,7 @@ $(document).ready(function() {
// Height of divs fix
var snheight = $('#sidenavigation').height();
var mainheight = $('#maincontent').height();
if (snheight > mainheight) {
if (snheight > mainheight && !$('#newsfeed').length) {
$('#maincontent').height(snheight);
}