Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Set weight diagramm width

Roland Geiderf4f539efca10
diff --git a/wger/weight/templates/weight_overview.html b/wger/weight/templates/weight_overview.html
index 36b988201..2fe0c2c49 100644
--- a/wger/weight/templates/weight_overview.html
+++ b/wger/weight/templates/weight_overview.html
@@ -17,7 +17,7 @@
$(document).ready(function () {
$.getJSON("/weight/api/get_weight_data/", function(json) {
- weight_chart(json);
+ weight_chart(json, $('#content').width());
});
});
</script>