chat ticket: boxFade: auto adjust height

This commit is contained in:
Felix Niklas 2016-01-15 10:37:10 +01:00
parent d780b05f09
commit 121d96a3b9

View file

@ -2194,7 +2194,6 @@ class ChatToTicketRef extends App.ControllerContent
super
@render()
@scrollToBottom()
@boxFade.height @chatBox.outerHeight()
@placeBoxFade()
render: ->
@ -2204,6 +2203,7 @@ class ChatToTicketRef extends App.ControllerContent
@scrollHolder.scrollTop(@scrollHolder.prop('scrollHeight'))
placeBoxFade: =>
@boxFade.height @chatBox.outerHeight()
y1 = @attachments.offset().top - @boxFade.offset().top
@boxFade.html App.view('layout_ref/boxFade')