Fix the size issue of hidden views.