• David Schnur's avatar
    Add text to its actual layer before measuring it. · 4203a66e
    David Schnur authored
    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.
    4203a66e
basic-canvas.html 1.44 KB