Fix RTL text direction rendering (#1687)

Co-authored-by: Lipis <lipiridis@gmail.com>
This commit is contained in:
Youness Fkhach
2020-06-02 21:31:34 +03:00
committed by GitHub
co-authored by Lipis
parent fd75b88bd3
commit a118bed82f
4 changed files with 41 additions and 10 deletions
+2
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;
},
) => {