patch resume height changed after resize