gregtatum / z-index-devtool

A UCOSP project for building a Z-Index Devtool.
Mozilla Public License 2.0
31 stars 7 forks source link

Properly overlay a Canvas element over selected DOM node #54

Closed jreinlein closed 8 years ago

jreinlein commented 8 years ago

Our last implementation would add/remove a CSS class to the DOM node, and CSS would add a border.

Rather, let's implement a canvas element overlaying the DOM node that is selected in the tree.

jreinlein commented 8 years ago

Note: the following link may be of help:

https://gist.github.com/sebmarkbage/6f7da234174ab9f64cce

bkindersley commented 8 years ago

i found there was weirdness with the sizing of the canvas.

i ended up using a div that is rerendered on scroll/resize etc.

closing this issue.