resize window by max div height