diff options
author | Constance Okoghenun <constanceokoghenun@gmail.com> | 2019-02-13 22:37:08 +0300 |
---|---|---|
committer | Constance Okoghenun <constanceokoghenun@gmail.com> | 2019-02-13 22:37:08 +0300 |
commit | 123da43182acbc571851dab2ec73ff73f704720e (patch) | |
tree | 1cddf3b6cb9f9730527637bb82509f4071a75a1e /spec/javascripts/lib/utils/common_utils_spec.js | |
parent | c470a77937c79169f3ba78a31c249bd71b5c6070 (diff) |
CE Port of fix for roadmap forward timeline scroll
EE MR: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/9530
Diffstat (limited to 'spec/javascripts/lib/utils/common_utils_spec.js')
-rw-r--r-- | spec/javascripts/lib/utils/common_utils_spec.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/javascripts/lib/utils/common_utils_spec.js b/spec/javascripts/lib/utils/common_utils_spec.js index 3eff3f655ee..c02e37950f8 100644 --- a/spec/javascripts/lib/utils/common_utils_spec.js +++ b/spec/javascripts/lib/utils/common_utils_spec.js @@ -855,6 +855,7 @@ describe('common_utils', () => { }); it('returns true when provided `el` is in viewport', () => { + el.setAttribute('style', `position: absolute; right: ${window.innerWidth + 0.2};`); document.body.appendChild(el); expect(commonUtils.isInViewport(el)).toBe(true); |