add comment why we do that on resize
and that max height of all elements is used