Skip to content

Commit 45d9f38

Browse files
Alignment issue fixed (#3173)
1 parent cf5cb64 commit 45d9f38

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

notebook/static/base/js/page.js

+14
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,21 @@ define([
7474
if (!(e && e.target && e.target.tagName)) {
7575
$('div#site').height($(window).height() - $('#header').height());
7676
}
77+
this._align_header_site();
7778
};
7879

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+
7993
return {'Page': Page};
8094
});

0 commit comments

Comments
 (0)