diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-16 21:09:24 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-16 21:09:24 +0300 |
commit | 1eec6b22b26d09ce6927adf66f98d755a6339815 (patch) | |
tree | b1bb8bbdc0d49136bfd176a1e64d3bd9f2969396 /app/assets/javascripts/merge_request_tabs.js | |
parent | b4e854a900ba9bcbfc3476f88317c59ea048daaf (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/merge_request_tabs.js')
-rw-r--r-- | app/assets/javascripts/merge_request_tabs.js | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/app/assets/javascripts/merge_request_tabs.js b/app/assets/javascripts/merge_request_tabs.js index 6aa45ecc7a0..251f1e0515a 100644 --- a/app/assets/javascripts/merge_request_tabs.js +++ b/app/assets/javascripts/merge_request_tabs.js @@ -19,7 +19,6 @@ import { } from './lib/utils/common_utils'; import { localTimeAgo } from './lib/utils/datetime_utility'; import { isInVueNoteablePage } from './lib/utils/dom_utils'; -import { polyfillSticky } from './lib/utils/sticky'; import { getLocationHash } from './lib/utils/url_utility'; import { __ } from './locale'; import Notes from './notes'; @@ -123,7 +122,6 @@ export default class MergeRequestTabs { ) { this.mergeRequestTabs.querySelector(`a[data-action='${action}']`).click(); } - this.initAffix(); } bindEvents() { @@ -509,21 +507,4 @@ export default class MergeRequestTabs { } }, 0); } - - initAffix() { - const $tabs = $('.js-tabs-affix'); - - // Screen space on small screens is usually very sparse - // So we dont affix the tabs on these - if (bp.getBreakpointSize() === 'xs' || !$tabs.length) return; - - /** - If the browser does not support position sticky, it returns the position as static. - If the browser does support sticky, then we allow the browser to handle it, if not - then we default back to Bootstraps affix - */ - if ($tabs.css('position') !== 'static') return; - - polyfillSticky($tabs); - } } |