This fixes #7510.  It will resize now immediately after the tab has been clicked.