check if view is locally visible