Browse Source

Better resize handling.

Nathaniel van Diepen 11 years ago
parent
commit
9c98de0565
1 changed files with 1 additions and 4 deletions
  1. 1 4
      js/index.js

+ 1 - 4
js/index.js

@@ -194,7 +194,7 @@
 							try{
 								if(($(this).hasClass('topbar-home') || $(this).hasClass('topbar-back'))&&$(window).width()<767){
 									$('#topbar').children('div.topbar-right,div.topbar-left').toggle();
-									$('#topbar').resize();
+									$(window).resize();
 								}else if($(this).hasClass('topbar-history')){
 									History.back();
 								}else{
@@ -281,9 +281,6 @@
 			$('#content').height($('body').height()-$('#topbar').height());
 			$('#content').getNiceScroll().resize();
 		});
-		$('#topbar,#content').resize(function(){
-			$(window).resize();
-		}).resize();
 		if($.isEmptyObject(State.data)){
 			History.replaceState({
 				type: 'page',