jooking / closure-library

Automatically exported from code.google.com/p/closure-library
Apache License 2.0
0 stars 1 forks source link

goog.graphics.CanvasGroupElement does not "delete" text elements #517

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

What steps will reproduce the problem?
1. Create a group in a goog.graphics.CanvasGraphics with createGroup(),
2. Draw some paths and/or images in the group,
3. Draw text on the group, 
4. Call clear() on the group.
5. Draw some other paths and/or images on the group.

What is the expected output? What do you see instead?
I expected to see only the drawings of the step 5 in the CanvasGraphics, but 
the text drawed in step 3 remains visible.

What version of the product are you using? On what operating system?
r2322

Please provide any additional information below.

It seems an issue due the text being drawed using DOM in the canvas, but the 
clear() function of group simply clearing its children array to ignore them in 
a redraw but not processing the TextElements to remove the DIV created on 
previous redraws

Original issue reported on code.google.com by kg.desig...@gmail.com on 28 Nov 2012 at 4:58