Fix height of #maincontent if newsfeed is shown
Signed-off-by: Roman Schmerold (BNoiZe) <bnoize@froxlor.org>
This commit is contained in:
2
templates/Sparkle/assets/js/main.js
vendored
2
templates/Sparkle/assets/js/main.js
vendored
@@ -53,7 +53,7 @@ $(document).ready(function() {
|
|||||||
// Height of divs fix
|
// Height of divs fix
|
||||||
var snheight = $('#sidenavigation').height();
|
var snheight = $('#sidenavigation').height();
|
||||||
var mainheight = $('#maincontent').height();
|
var mainheight = $('#maincontent').height();
|
||||||
if (snheight > mainheight) {
|
if (snheight > mainheight && !$('#newsfeed').length) {
|
||||||
$('#maincontent').height(snheight);
|
$('#maincontent').height(snheight);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user