PR #3658 - Fixes mistypes in article_view.coffee
This commit is contained in:
parent
ca15d3ef40
commit
fc393e452e
1 changed files with 9 additions and 9 deletions
|
@ -274,7 +274,7 @@ class ArticleViewItem extends App.ControllerObserver
|
||||||
offsetTop = signatureMarker.next('div, p, br').position()
|
offsetTop = signatureMarker.next('div, p, br').position()
|
||||||
|
|
||||||
# remember bubble content height
|
# remember bubble content height
|
||||||
bubbleContentHeigth = bubbleContent.height()
|
bubbleContentHeight = bubbleContent.height()
|
||||||
|
|
||||||
# get marker height
|
# get marker height
|
||||||
if offsetTop
|
if offsetTop
|
||||||
|
@ -282,18 +282,18 @@ class ArticleViewItem extends App.ControllerObserver
|
||||||
|
|
||||||
# if signature marker exists and height is within maxHeight
|
# if signature marker exists and height is within maxHeight
|
||||||
if markerHeight && markerHeight < maxHeight
|
if markerHeight && markerHeight < maxHeight
|
||||||
newHeigth = markerHeight + 30
|
newHeight = markerHeight + 30
|
||||||
if newHeigth < minHeight
|
if newHeight < minHeight
|
||||||
newHeigth = minHeight
|
newHeight = minHeight
|
||||||
|
|
||||||
bubbleContent.attr('data-height', bubbleContentHeigth + 30)
|
bubbleContent.attr('data-height', bubbleContentHeight + 30)
|
||||||
bubbleContent.attr('data-height-origin', newHeigth)
|
bubbleContent.attr('data-height-origin', newHeight)
|
||||||
bubbleContent.css('height', "#{newHeigth}px")
|
bubbleContent.css('height', "#{newHeight}px")
|
||||||
bubbleOverflowContainer.removeClass('hide')
|
bubbleOverflowContainer.removeClass('hide')
|
||||||
|
|
||||||
# if height is higher then maxHeight
|
# if height is higher then maxHeight
|
||||||
else if bubbleContentHeigth > maxHeight
|
else if bubbleContentHeight > maxHeight
|
||||||
bubbleContent.attr('data-height', bubbleContentHeigth + 30)
|
bubbleContent.attr('data-height', bubbleContentHeight + 30)
|
||||||
bubbleContent.attr('data-height-origin', maxHeight)
|
bubbleContent.attr('data-height-origin', maxHeight)
|
||||||
bubbleContent.css('height', "#{maxHeight}px")
|
bubbleContent.css('height', "#{maxHeight}px")
|
||||||
bubbleOverflowContainer.removeClass('hide')
|
bubbleOverflowContainer.removeClass('hide')
|
||||||
|
|
Loading…
Reference in a new issue