Tests: Add scroll to view long benchmark graph legend
Pull Request: https://projects.blender.org/blender/blender/pulls/128339
This commit is contained in:
committed by
Brecht Van Lommel
parent
d4c2d73864
commit
f16127a356
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user