Commit b0e24413 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Improve issue sidebar position

parent 303382c7
...@@ -19,6 +19,6 @@ class @Issue ...@@ -19,6 +19,6 @@ class @Issue
$('.issue-details').waitForImages -> $('.issue-details').waitForImages ->
$('.issuable-affix').affix offset: $('.issuable-affix').affix offset:
top: -> top: ->
@top = $('.issue-details').outerHeight(true) + 25 @top = ($('.issuable-affix').offset().top - 70)
bottom: -> bottom: ->
@bottom = $('.footer').outerHeight(true) @bottom = $('.footer').outerHeight(true)
...@@ -23,7 +23,7 @@ class @MergeRequest ...@@ -23,7 +23,7 @@ class @MergeRequest
$('.merge-request-details').waitForImages -> $('.merge-request-details').waitForImages ->
$('.issuable-affix').affix offset: $('.issuable-affix').affix offset:
top: -> top: ->
@top = $('.merge-request-details').outerHeight(true) + 91 @top = ($('.issuable-affix').offset().top - 70)
bottom: -> bottom: ->
@bottom = $('.footer').outerHeight(true) @bottom = $('.footer').outerHeight(true)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment