Commit ecb66fc3 authored by Clement Ho's avatar Clement Ho

Fix affix using stickyfilljs polyfill

parent 788b0359
import $ from 'jquery';
import _ from 'underscore';
import StickyFill from 'stickyfilljs';
import axios from './lib/utils/axios_utils';
import { visitUrl } from './lib/utils/url_utility';
import bp from './breakpoints';
......@@ -82,17 +83,11 @@ export default class Job {
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
then we use a polyfill
if (this.$topBar.css('position') !== 'static') return;
const offsetTop = this.$buildTrace.offset().top;
offset: {
top: offsetTop,
// eslint-disable-next-line class-methods-use-this
......@@ -8208,6 +8208,10 @@ statuses@~1.3.1:
version "1.3.1"
resolved ""
version "2.0.5"
resolved ""
version "2.0.1"
resolved ""
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment