Merge pull request #347 from floreno/patch-3
min-height against height fix for ajax-changing-content
This commit is contained in:
4
templates/Sparkle/assets/js/main.js
vendored
4
templates/Sparkle/assets/js/main.js
vendored
@@ -70,7 +70,7 @@ $(document).ready(function() {
|
|||||||
var snheight = $('#sidenavigation').height();
|
var snheight = $('#sidenavigation').height();
|
||||||
var mainheight = $('#maincontent').height();
|
var mainheight = $('#maincontent').height();
|
||||||
if (snheight > mainheight && !$('#newsfeed').length) {
|
if (snheight > mainheight && !$('#newsfeed').length) {
|
||||||
$('#maincontent').height(snheight);
|
$('#maincontent').css("min-height", snheight);
|
||||||
}
|
}
|
||||||
// this is necessary for the special setting feature (ref #1010)
|
// this is necessary for the special setting feature (ref #1010)
|
||||||
$.getQueryVariable = function(key) {
|
$.getQueryVariable = function(key) {
|
||||||
@@ -219,4 +219,4 @@ $(document).ready(function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
autosize($('textarea.shell'));
|
autosize($('textarea.shell'));
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user