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
3 changed files with 9 additions and 3 deletions
|
@ -554,6 +554,7 @@ th.css-accessory > .th-inner::before {
|
|||
.form-group.has-error label {
|
||||
color: #a94442;
|
||||
}
|
||||
|
||||
.select2-container--default .select2-selection--multiple {
|
||||
border-radius: 0px;
|
||||
}
|
||||
|
|
1
public/css/dist/all.css
vendored
1
public/css/dist/all.css
vendored
|
@ -20465,7 +20465,6 @@ th.css-accessory > .th-inner::before {
|
|||
border-radius: 0px;
|
||||
}
|
||||
|
||||
|
||||
.select2-container {
|
||||
box-sizing: border-box;
|
||||
display: inline-block;
|
||||
|
|
|
@ -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…
Add table
Reference in a new issue