partial resize rectangle