Fixed issue when scrolling to element and there is an expander
This commit is contained in:
parent
6495c13d70
commit
28faa9719d
1 changed files with 2 additions and 2 deletions
|
@ -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) ->
|
||||
|
|
Loading…
Reference in a new issue