We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf5cb64 commit 45d9f38Copy full SHA for 45d9f38
notebook/static/base/js/page.js
@@ -74,7 +74,21 @@ define([
74
if (!(e && e.target && e.target.tagName)) {
75
$('div#site').height($(window).height() - $('#header').height());
76
}
77
+ this._align_header_site();
78
};
79
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
return {'Page': Page};
94
});
0 commit comments