Forum Discussion
I have a solution: Put the code below in your dashboard script. It adjusts the height of the box that wraps around the PivotTable so that it doesn’t cut off the bottom row anymore.
Sisense - please fix this in a future update?
//-------------------------------------------------------------------------------------------------
//Fix problem where download-as-image crops off half of the bottom row of PivotTables
//-------------------------------------------------------------------------------------------------
dashboard.on
(
'widgetready', function (widget)
{
document.querySelectorAll('.pivot-scroller').forEach
(
function(element)
{
var currentHeight = parseInt(window.getComputedStyle(element).getPropertyValue('height'));
element.style.height = (currentHeight + 50) + 'px';
}
);
document.querySelectorAll('.pivot-scroller__container').forEach
(
function(element)
{
var currentHeight = parseInt(window.getComputedStyle(element).getPropertyValue('height'));
element.style.height = (currentHeight + 50) + 'px';
}
);
}
);