diff options
| author | Phil Hughes <me@iamphill.com> | 2016-04-14 17:07:44 +0100 |
|---|---|---|
| committer | Phil Hughes <me@iamphill.com> | 2016-04-20 17:25:16 +0100 |
| commit | 28faa9719d70867f6ca0b0fb6b9fbf125812eb47 (patch) | |
| tree | 857c4a44689171fca3ca74f633b3a9fca48ea14e /app | |
| parent | 6495c13d70cfd26cb46fb8bd0b7bc138cb939ff0 (diff) | |
| download | gitlab-ce-28faa9719d70867f6ca0b0fb6b9fbf125812eb47.tar.gz | |
Fixed issue when scrolling to element and there is an expander
Diffstat (limited to 'app')
| -rw-r--r-- | app/assets/javascripts/merge_request_tabs.js.coffee | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/merge_request_tabs.js.coffee b/app/assets/javascripts/merge_request_tabs.js.coffee index 55e09c6acb9..372732d0aac 100644 --- a/app/assets/javascripts/merge_request_tabs.js.coffee +++ b/app/assets/javascripts/merge_request_tabs.js.coffee @@ -87,8 +87,8 @@ class @MergeRequestTabs if window.location.hash navBarHeight = $('.navbar-gitlab').outerHeight() - $el = $("#{container} #{window.location.hash}") - $.scrollTo("#{container} #{window.location.hash}", offset: -navBarHeight) if $el.length + $el = $("#{container} #{window.location.hash}:not(.match)") + $.scrollTo("#{container} #{window.location.hash}:not(.match)", offset: -navBarHeight) if $el.length # Activate a tab based on the current action activateTab: (action) -> |
