Fix RTL text direction rendering (#1687)

Co-authored-by: Lipis <lipiridis@gmail.com>
This commit is contained in:
Youness Fkhach 2020-06-02 19:31:34 +01:00 committed by GitHub
parent fd75b88bd3
commit a118bed82f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 41 additions and 10 deletions

View file

@ -32,6 +32,8 @@ export const exportToCanvas = (
const tempCanvas = document.createElement("canvas");
tempCanvas.width = width * scale;
tempCanvas.height = height * scale;
// We append the canvas before drawing it to it for RTL to work
document.body.appendChild(tempCanvas);
return tempCanvas;
},
) => {