Taking into account the height of new message