From dc884fc604d144ae582ef1874a785fbc4dd1a46b Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Fri, 27 Jul 2018 18:09:39 +0200 Subject: [PATCH] =?UTF-8?q?TicketZoom:=20don=E2=80=99t=20show=20scroll-hea?= =?UTF-8?q?der=20when=20its=20not=20needed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes the bug mentioned here: https://community.zammad.org/t/chrome-min-height-101/1004 --- app/assets/javascripts/app/controllers/ticket_zoom.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/app/controllers/ticket_zoom.coffee b/app/assets/javascripts/app/controllers/ticket_zoom.coffee index a7f3057be..28f86a5be 100644 --- a/app/assets/javascripts/app/controllers/ticket_zoom.coffee +++ b/app/assets/javascripts/app/controllers/ticket_zoom.coffee @@ -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