|
|
|
|
|
by numbsafari
4846 days ago
|
|
I have a lot of canvas drawing going on in my app (charts) and ran into the same issue. As you point out, appending the element to the DOM before everything is fully rendered can cause all sorts of re-drawing to go on. When that's a concern, I proactively set height/width dimensions on the element before adding it. In cases where that's problematic, I just have the render function of the view either update or remove the explicit height/width styling. That seems to help avoid the worst cases of redrawing/flicker. |
|