Skip to content

Commit

Permalink
Alignment issue fixed (#3173)
Browse files Browse the repository at this point in the history
  • Loading branch information
Axle7XStriker authored Jun 3, 2020
1 parent cf5cb64 commit 45d9f38
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions notebook/static/base/js/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,21 @@ define([
if (!(e && e.target && e.target.tagName)) {
$('div#site').height($(window).height() - $('#header').height());
}
this._align_header_site();
};



Page.prototype._align_header_site = function(e) {
/**
* Align the site and header divs
*/
var header_div_element_width = this.header_div_element.outerWidth();
var header_container_width = $('div#header-container').outerWidth();
var margin_left = (header_div_element_width - header_container_width) / 2;

this.site_div_element.find('.container').css('margin-left', margin_left);
}

return {'Page': Page};
});

0 comments on commit 45d9f38

Please sign in to comment.