Only respond to resize events when attached.