File size: 581 Bytes
45721da
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[2.7] Lost responsive after destroy recreate
If some options have changed, I destroy the chart then create a new one.
```
if (chart) chart.destroy()
chart = new Chart(...)
```
Since 2.7, the div which handle resize detection is removed but is not re-created. 
No problem with the iframe in 2.6

## Relevant pre-fix discussion

### Issue #4737

#### Comment at 2017-09-11T10:32:15Z

@simonbrunel your jsfiddle reproduce the issue perfectly
Initial : 
![image](assets/chartjs__Chart.js-4774/001.png)
After click on recreate :
![image](assets/chartjs__Chart.js-4774/002.png)