Fix #439 resize behavior in resume