Fixed shown "see more" if total height is higher the max height and maker is within max height.

This commit is contained in:
Martin Edenhofer 2016-06-30 11:52:33 +02:00
parent 9fe709f9b7
commit 0ee32d3104

View file

@ -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