Tests: Add scroll to view long benchmark graph legend

Pull Request: https://projects.blender.org/blender/blender/pulls/128339
This commit is contained in:
Iliya Katueshenock
2025-01-26 08:54:44 +01:00
committed by Brecht Van Lommel
parent d4c2d73864
commit f16127a356

View File

@@ -119,6 +119,14 @@
var chart = new google.charts.Bar(chart_div);
chart.draw(transposeDataTable(data), options);
}
/* Auto scale chart elements to display full SVG. */
google.visualization.events.addListener(chart, 'ready', function () {
var allSvg = document.getElementsByTagName("svg");
for (var index = 0; index < allSvg.length; index++) {
allSvg[index].setAttribute('height', allSvg[index].getBBox().height);
}
});
}
}
</script>