Fix to content panel resize bug