File tree 1 file changed +1
-17
lines changed
1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ define([
27
27
// - header change
28
28
// - page load
29
29
var _handle_resize = $ . proxy ( this . _resize_site , this ) ;
30
-
30
+
31
31
$ ( window ) . resize ( _handle_resize ) ;
32
32
33
33
// On document ready, resize codemirror.
@@ -61,8 +61,6 @@ define([
61
61
this . _resize_site ( ) ;
62
62
} ;
63
63
64
-
65
-
66
64
Page . prototype . _resize_site = function ( e ) {
67
65
/**
68
66
* Update the site's size.
@@ -74,21 +72,7 @@ define([
74
72
if ( ! ( e && e . target && e . target . tagName ) ) {
75
73
$ ( 'div#site' ) . height ( $ ( window ) . height ( ) - $ ( '#header' ) . height ( ) ) ;
76
74
}
77
- this . _align_header_site ( ) ;
78
75
} ;
79
76
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
-
93
77
return { 'Page' : Page } ;
94
78
} ) ;
You can’t perform that action at this time.
0 commit comments