linearpartition + resize window