Commit 05c1ba3
committed
fix(dom): update canvas style on resize to allow chart to grow
When the chart's container grows, the canvas style width/height
were not being updated because they were already set (from initial
render). This caused the chart to shrink correctly but not grow
when the window was enlarged.
This fix updates the canvas style width/height during resize when
they differ from the current chart dimensions, allowing the chart
to properly resize in both directions.
Fixes #121771 parent a153556 commit 05c1ba3
1 file changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| 225 | + | |
| 226 | + | |
225 | 227 | | |
226 | 228 | | |
227 | 229 | | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
228 | 241 | | |
229 | 242 | | |
230 | 243 | | |
| |||
0 commit comments