Don't run resize if the content isn't visible.