Settle the element rect computation
Settle the element rect computation

The computation of the element rect can cause a jiggling effect
if always takes the latest value. For certain resolutions, it adds or
removes a scrollbar which changes the size of the element infinitely

CALWEB-2684

ProtonMail/WebClient,ProtonMail/WebClient,ProtonMail/WebClient