From 84f3365206c4ef89bf550dbb20d6584c62039e03 Mon Sep 17 00:00:00 2001 From: Zigfield Trotter Date: Mon, 21 Oct 2024 15:13:37 +0200 Subject: [PATCH] Bugfix: Fixed gap caused by async widgets --- var/httpd/htdocs/js/Core.Agent.TicketZoom.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/var/httpd/htdocs/js/Core.Agent.TicketZoom.js b/var/httpd/htdocs/js/Core.Agent.TicketZoom.js index eefe701540f..2a6de465878 100644 --- a/var/httpd/htdocs/js/Core.Agent.TicketZoom.js +++ b/var/httpd/htdocs/js/Core.Agent.TicketZoom.js @@ -625,7 +625,13 @@ Core.Agent.TicketZoom = (function (TargetNS) { return false; }); - $('#' + ElementID).find('.WidgetSimple').hide().fadeIn(); + // Check if the widget has no content and hide it to remove unnecessary gaps between widgets + if ($('#' + ElementID).text().trim() === '') { + $('#' + ElementID).hide(); + }else { + $('#' + ElementID).find('.WidgetSimple').hide().fadeIn(); + } + Core.UI.InitWidgetActionToggle(); }); });