Fix clear tab resize issue