more progress on dynamic resize