Fixed draw bug when collapsing view.