diff --git a/var/httpd/htdocs/js/Core.Agent.TicketZoom.js b/var/httpd/htdocs/js/Core.Agent.TicketZoom.js index eefe701540..2a6de46587 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(); }); });