Added Auto Resize to scrollbar

This commit is contained in:
Brinken
2012-08-30 18:39:56 +02:00
parent 686e3be755
commit 1a1543dce2
+1 -2
View File
@@ -174,7 +174,7 @@ function enit()
var mainWindow = $("#main"); var mainWindow = $("#main");
var totalHeight = $(window).height() - ($("#header").outerHeight() + $("#footer").outerHeight()) - 3; var totalHeight = $(window).height() - ($("#header").outerHeight() + $("#footer").outerHeight()) - 3;
$(mainWindow).height(totalHeight); $(mainWindow).height(totalHeight);
$(mainWindow).jScrollPane({ showArrows: true, animateScroll: true, hijackInternalLinks: true }); $(mainWindow).jScrollPane({ showArrows: true, animateScroll: true, hijackInternalLinks: true, autoReinitialise: true });
} }
$(document).ready(function(){ $(document).ready(function(){
$("ul#nav-view li").toggle(function() { $("ul#nav-view li").toggle(function() {
@@ -188,7 +188,6 @@ $(document).ready(function(){
$(this).children("span").addClass("Icon"); $(this).children("span").addClass("Icon");
$("#gridView").show(); $("#gridView").show();
$("#listView").hide(); $("#listView").hide();
enit();
}); });
}); });