Skip to content

Commit 233bc12

Browse files
nicoburnsmrego
authored andcommitted
Rerender WPT chart on resize
Signed-off-by: Nico Burns <[email protected]>
1 parent 5ec4b36 commit 233bc12

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

assets/js/load-chart.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ function setupChart () {
193193

194194
area_dropdown.onchange = update_chart
195195
period_dropdown.onchange = update_chart
196+
addEventListener("resize", update_chart);
196197
if (window.matchMedia) {
197198
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', ({ matches }) => {
198199
dark_mode = matches

0 commit comments

Comments
 (0)