HeadsUp: make sure view is attached to window before updating layout