Skip to content

Commit

Permalink
Bugfix: Fixed gap caused by async widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
ZTrotter committed Oct 21, 2024
1 parent 75653c0 commit 84f3365
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion var/httpd/htdocs/js/Core.Agent.TicketZoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
});
Expand Down

0 comments on commit 84f3365

Please sign in to comment.