HTML Gadget height on Dashboard is reduced
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
This article describes a scenario where the html gadget height is shortened. Thus all the contents need to be scrolled to view

Environment
9.x
Cause
There is known product bug JRASERVER-74987 - HTML Gadget height on Dashboard is reduced .
This problem is observed in Windows OS.
Workaround
Following javascript can be used as workaround. Add it in announcement banner.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
<script> setTimeout(function() { AJS.toInit(function() { if (document.URL.indexOf("/secure/Dashboard.jspa") >= 0) { try { var textdashboard = document.getElementsByClassName('text-dashboard-item-container'); for (var j = 0, gadgetCount = textdashboard.length; j < gadgetCount; j++) { var heightvar = textdashboard[j].children[0].style.height; var heightframevar = textdashboard[j].parentElement.style.height; if(heightvar > heightframevar) textdashboard[j].parentElement.style.height=heightvar; } } catch (error) {} } }); }, 2000); </script>
Was this helpful?