Set the size of the overlaybox without relying on the arbitrary initSize
Comments By: vladislav Differential Revision: D4489
#6484
D4585