From fc393e452ed61ea146605bbd2fb78c3a02a724a9 Mon Sep 17 00:00:00 2001 From: olafbuitelaar Date: Thu, 15 Jul 2021 01:16:35 +0200 Subject: [PATCH] PR #3658 - Fixes mistypes in article_view.coffee --- .../ticket_zoom/article_view.coffee | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app/assets/javascripts/app/controllers/ticket_zoom/article_view.coffee b/app/assets/javascripts/app/controllers/ticket_zoom/article_view.coffee index 2cd4a2141..66a6a5e87 100644 --- a/app/assets/javascripts/app/controllers/ticket_zoom/article_view.coffee +++ b/app/assets/javascripts/app/controllers/ticket_zoom/article_view.coffee @@ -274,7 +274,7 @@ class ArticleViewItem extends App.ControllerObserver offsetTop = signatureMarker.next('div, p, br').position() # remember bubble content height - bubbleContentHeigth = bubbleContent.height() + bubbleContentHeight = bubbleContent.height() # get marker height if offsetTop @@ -282,18 +282,18 @@ class ArticleViewItem extends App.ControllerObserver # if signature marker exists and height is within maxHeight if markerHeight && markerHeight < maxHeight - newHeigth = markerHeight + 30 - if newHeigth < minHeight - newHeigth = minHeight + newHeight = markerHeight + 30 + if newHeight < minHeight + newHeight = minHeight - bubbleContent.attr('data-height', bubbleContentHeigth + 30) - bubbleContent.attr('data-height-origin', newHeigth) - bubbleContent.css('height', "#{newHeigth}px") + bubbleContent.attr('data-height', bubbleContentHeight + 30) + bubbleContent.attr('data-height-origin', newHeight) + bubbleContent.css('height', "#{newHeight}px") bubbleOverflowContainer.removeClass('hide') # if height is higher then maxHeight - else if bubbleContentHeigth > maxHeight - bubbleContent.attr('data-height', bubbleContentHeigth + 30) + else if bubbleContentHeight > maxHeight + bubbleContent.attr('data-height', bubbleContentHeight + 30) bubbleContent.attr('data-height-origin', maxHeight) bubbleContent.css('height', "#{maxHeight}px") bubbleOverflowContainer.removeClass('hide')