Skip to content

Commit 6346a0f

Browse files
Merge pull request #8 from LibCrowds/fix-chart-heights
Resize on page load
2 parents 9228ffc + d48ef29 commit 6346a0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcrowds_statistics/templates/stats.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ <h4 class="padding-bottom-sm text-center">Total Hourly Activity</h4>
178178
}
179179
});
180180

181-
$(window).on("load resize", function() {
181+
$(window).on("resize", function() {
182182
resizeStatsRow();
183-
});
183+
}).resize();
184184
</script>
185185
{% endblock %}

0 commit comments

Comments
 (0)