Add text to its actual layer before measuring it.
The getTextInfo method previously added new text to the top-level container when measuring it. Now it adds the text to the text layer, just as it will be when rendered, so that parent-child CSS rules can resolve correctly. This also avoids having to safe a reference to the top-level container, since it wasn't used anywhere else.
Showing
examples/basic-canvas.html
0 → 100644
Please
register
or
sign in
to comment