diff options
author | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2017-06-21 18:51:36 -0500 |
---|---|---|
committer | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2017-06-21 18:51:36 -0500 |
commit | 5715565b09f94988212ce034ccd8c774e96eb11b (patch) | |
tree | 41c7a5cc701c336931fd5756c7a656334c81ca93 | |
parent | aa31e5d252c0e2b92acd8f84e842382ec896f182 (diff) | |
download | gitlab-ce-34095-permalinks.tar.gz |
Fix specs34095-permalinks
-rw-r--r-- | app/assets/javascripts/lib/utils/common_utils.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/lib/utils/common_utils.js b/app/assets/javascripts/lib/utils/common_utils.js index b0e71defe37..122ec138c59 100644 --- a/app/assets/javascripts/lib/utils/common_utils.js +++ b/app/assets/javascripts/lib/utils/common_utils.js @@ -96,9 +96,9 @@ if (document.getElementById(hash) === null) { var target = document.getElementById('user-content-' + hash); if (target && target.scrollIntoView) { - target.scrollIntoView(true); - window.scrollBy(0, adjustment); - } + target.scrollIntoView(true); + window.scrollBy(0, adjustment); + } } else { // only adjust for fixedTabs when not targeting user-generated content if (fixedTabs) { |