Determine visibility by checking offsetWidth/Height of the editor's node

This could still use some cleanup