Loading core/misc/tableheader.es6.js +7 −0 Original line number Diff line number Diff line Loading @@ -208,6 +208,8 @@ * Create the duplicate header. */ createSticky() { // For caching purposes. this.$html = $('html'); // Clone the table header so it inherits original jQuery properties. const $stickyHeader = this.$originalHeader.clone(true); // Hide the table to avoid a flash of the header clone upon page load. Loading Loading @@ -245,6 +247,11 @@ if (typeof offsetLeft === 'number') { css.left = `${this.tableOffset.left - offsetLeft}px`; } this.$html.css( 'scroll-padding-top', displace.offsets.top + (this.stickyVisible ? this.$stickyTable.height() : 0), ); return this.$stickyTable.css(css); }, Loading core/misc/tableheader.js +2 −0 Original line number Diff line number Diff line Loading @@ -90,6 +90,7 @@ tableHeight: null, stickyVisible: false, createSticky: function createSticky() { this.$html = $('html'); var $stickyHeader = this.$originalHeader.clone(true); this.$stickyTable = $('<table class="sticky-header"></table>').css({ visibility: 'hidden', Loading @@ -110,6 +111,7 @@ css.left = "".concat(this.tableOffset.left - offsetLeft, "px"); } this.$html.css('scroll-padding-top', displace.offsets.top + (this.stickyVisible ? this.$stickyTable.height() : 0)); return this.$stickyTable.css(css); }, checkStickyVisible: function checkStickyVisible() { Loading core/modules/toolbar/js/views/ToolbarVisualView.es6.js +3 −0 Original line number Diff line number Diff line Loading @@ -86,6 +86,9 @@ $('body').css({ 'padding-top': this.model.get('height'), }); $('html').css({ 'scroll-padding-top': this.model.get('height'), }); this.triggerDisplace(); }, Loading core/modules/toolbar/js/views/ToolbarVisualView.js +3 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,9 @@ $('body').css({ 'padding-top': this.model.get('height') }); $('html').css({ 'scroll-padding-top': this.model.get('height') }); this.triggerDisplace(); }, triggerDisplace: function triggerDisplace() { Loading Loading
core/misc/tableheader.es6.js +7 −0 Original line number Diff line number Diff line Loading @@ -208,6 +208,8 @@ * Create the duplicate header. */ createSticky() { // For caching purposes. this.$html = $('html'); // Clone the table header so it inherits original jQuery properties. const $stickyHeader = this.$originalHeader.clone(true); // Hide the table to avoid a flash of the header clone upon page load. Loading Loading @@ -245,6 +247,11 @@ if (typeof offsetLeft === 'number') { css.left = `${this.tableOffset.left - offsetLeft}px`; } this.$html.css( 'scroll-padding-top', displace.offsets.top + (this.stickyVisible ? this.$stickyTable.height() : 0), ); return this.$stickyTable.css(css); }, Loading
core/misc/tableheader.js +2 −0 Original line number Diff line number Diff line Loading @@ -90,6 +90,7 @@ tableHeight: null, stickyVisible: false, createSticky: function createSticky() { this.$html = $('html'); var $stickyHeader = this.$originalHeader.clone(true); this.$stickyTable = $('<table class="sticky-header"></table>').css({ visibility: 'hidden', Loading @@ -110,6 +111,7 @@ css.left = "".concat(this.tableOffset.left - offsetLeft, "px"); } this.$html.css('scroll-padding-top', displace.offsets.top + (this.stickyVisible ? this.$stickyTable.height() : 0)); return this.$stickyTable.css(css); }, checkStickyVisible: function checkStickyVisible() { Loading
core/modules/toolbar/js/views/ToolbarVisualView.es6.js +3 −0 Original line number Diff line number Diff line Loading @@ -86,6 +86,9 @@ $('body').css({ 'padding-top': this.model.get('height'), }); $('html').css({ 'scroll-padding-top': this.model.get('height'), }); this.triggerDisplace(); }, Loading
core/modules/toolbar/js/views/ToolbarVisualView.js +3 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,9 @@ $('body').css({ 'padding-top': this.model.get('height') }); $('html').css({ 'scroll-padding-top': this.model.get('height') }); this.triggerDisplace(); }, triggerDisplace: function triggerDisplace() { Loading