TicketZoom: don’t show scroll-header when its not needed

fixes the bug mentioned here: https://community.zammad.org/t/chrome-min-height-101/1004
This commit is contained in:
Felix Niklas 2018-07-27 18:09:39 +02:00
parent 5ac5932320
commit dc884fc604

View file

@ -386,6 +386,7 @@ class App.TicketZoom extends App.Controller
# if page header is not possible to use - mainScrollHeigth to low - hide page header
if not mainScrollHeigth > mainHeigth + headerHeight
@scrollPageHeader.css('transform', "translateY(#{-headerHeight}px)")
return
if scroll > headerHeight
scroll = headerHeight