From 5715565b09f94988212ce034ccd8c774e96eb11b Mon Sep 17 00:00:00 2001 From: Annabel Dunstone Gray Date: Wed, 21 Jun 2017 18:51:36 -0500 Subject: Fix specs --- app/assets/javascripts/lib/utils/common_utils.js | 6 +++--- 1 file 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) { -- cgit v1.2.1