File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed
Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ define([
2727 // - header change
2828 // - page load
2929 var _handle_resize = $ . proxy ( this . _resize_site , this ) ;
30-
30+
3131 $ ( window ) . resize ( _handle_resize ) ;
3232
3333 // On document ready, resize codemirror.
@@ -61,8 +61,6 @@ define([
6161 this . _resize_site ( ) ;
6262 } ;
6363
64-
65-
6664 Page . prototype . _resize_site = function ( e ) {
6765 /**
6866 * Update the site's size.
@@ -74,21 +72,7 @@ define([
7472 if ( ! ( e && e . target && e . target . tagName ) ) {
7573 $ ( 'div#site' ) . height ( $ ( window ) . height ( ) - $ ( '#header' ) . height ( ) ) ;
7674 }
77- this . _align_header_site ( ) ;
7875 } ;
7976
80-
81-
82- Page . prototype . _align_header_site = function ( e ) {
83- /**
84- * Align the site and header divs
85- */
86- var header_div_element_width = this . header_div_element . outerWidth ( ) ;
87- var header_container_width = $ ( 'div#header-container' ) . outerWidth ( ) ;
88- var margin_left = ( header_div_element_width - header_container_width ) / 2 ;
89-
90- this . site_div_element . find ( '.container' ) . css ( 'margin-left' , margin_left ) ;
91- }
92-
9377 return { 'Page' : Page } ;
9478} ) ;
You can’t perform that action at this time.
0 commit comments