Fix affix for issue and merge request with image in description
This commit is contained in:
parent
e993b59b7d
commit
c254cb03d8
2 changed files with 12 additions and 10 deletions
|
@ -16,6 +16,7 @@ class @Issue
|
||||||
updateTaskState
|
updateTaskState
|
||||||
)
|
)
|
||||||
|
|
||||||
|
$('.issue-details').waitForImages ->
|
||||||
$('.issuable-affix').affix offset:
|
$('.issuable-affix').affix offset:
|
||||||
top: ->
|
top: ->
|
||||||
@top = $('.issue-details').outerHeight(true) + 25
|
@top = $('.issue-details').outerHeight(true) + 25
|
||||||
|
|
|
@ -20,9 +20,10 @@ class @MergeRequest
|
||||||
if $("a.btn-close").length
|
if $("a.btn-close").length
|
||||||
$("li.task-list-item input:checkbox").prop("disabled", false)
|
$("li.task-list-item input:checkbox").prop("disabled", false)
|
||||||
|
|
||||||
|
$('.merge-request-details').waitForImages ->
|
||||||
$('.issuable-affix').affix offset:
|
$('.issuable-affix').affix offset:
|
||||||
top: ->
|
top: ->
|
||||||
@top = $('.merge-request-details').outerHeight(true) + 70
|
@top = $('.merge-request-details').outerHeight(true) + 91
|
||||||
bottom: ->
|
bottom: ->
|
||||||
@bottom = $('.footer').outerHeight(true)
|
@bottom = $('.footer').outerHeight(true)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue