From 0ee32d3104fc664673a0ca6690f4e1767311688a Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 30 Jun 2016 11:52:33 +0200 Subject: [PATCH] Fixed shown "see more" if total height is higher the max height and maker is within max height. --- .../app/controllers/ticket_zoom/article_view.coffee | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 2a23bcb85..c6544ac8d 100644 --- a/app/assets/javascripts/app/controllers/ticket_zoom/article_view.coffee +++ b/app/assets/javascripts/app/controllers/ticket_zoom/article_view.coffee @@ -200,8 +200,12 @@ class ArticleViewItem extends App.ObserverController # remember bubble heigth heigth = bubbleContent.height() + # get marker heigth + if offsetTop + markerHeight = offsetTop.top + # if signature marker exists and heigth is within maxHeight - if offsetTop && heigth < maxHeight + if markerHeight && markerHeight < maxHeight newHeigth = offsetTop.top + 30 if newHeigth < minHeight newHeigth = minHeight