Skip to content

Commit 138b406

Browse files
authored
Merge pull request #5703 from Zsailer/revert-html-alignment
Revert change in page alignment
2 parents a11d686 + 31fc47a commit 138b406

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

notebook/static/base/js/page.js

+1-17
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)