Fixed shown "see more" if total height is higher the max height and maker is within max height.
This commit is contained in:
parent
9fe709f9b7
commit
0ee32d3104
1 changed files with 5 additions and 1 deletions
|
@ -200,8 +200,12 @@ class ArticleViewItem extends App.ObserverController
|
||||||
# remember bubble heigth
|
# remember bubble heigth
|
||||||
heigth = bubbleContent.height()
|
heigth = bubbleContent.height()
|
||||||
|
|
||||||
|
# get marker heigth
|
||||||
|
if offsetTop
|
||||||
|
markerHeight = offsetTop.top
|
||||||
|
|
||||||
# if signature marker exists and heigth is within maxHeight
|
# if signature marker exists and heigth is within maxHeight
|
||||||
if offsetTop && heigth < maxHeight
|
if markerHeight && markerHeight < maxHeight
|
||||||
newHeigth = offsetTop.top + 30
|
newHeigth = offsetTop.top + 30
|
||||||
if newHeigth < minHeight
|
if newHeigth < minHeight
|
||||||
newHeigth = minHeight
|
newHeigth = minHeight
|
||||||
|
|
Loading…
Reference in a new issue