fixed the 0-height issue with onBoxReady event