mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
Merge pull request #10113 from Godmartinz/bug/sc-17129/v6-integration-pie-chart-disappears-if-you
Fixed #sc17129 - Pie chart disappears when window resizes
This commit is contained in:
commit
636dc6877b
Binary file not shown.
BIN
public/css/dist/all.css
vendored
BIN
public/css/dist/all.css
vendored
Binary file not shown.
|
@ -424,7 +424,7 @@
|
|||
var pieOptions = {
|
||||
legend: {
|
||||
position: 'top',
|
||||
responsive: true,
|
||||
responsive: true,
|
||||
maintainAspectRatio: true,
|
||||
}
|
||||
};
|
||||
|
@ -446,7 +446,13 @@
|
|||
},
|
||||
error: function (data) {
|
||||
// window.location.reload(true);
|
||||
}
|
||||
},
|
||||
});
|
||||
var last = document.getElementById('statusPieChart').clientWidth;
|
||||
addEventListener('resize', function() {
|
||||
var current = document.getElementById('statusPieChart').clientWidth;
|
||||
if (current != last) location.reload();
|
||||
last = current;
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
|
Loading…
Reference in a new issue