forked from EVOgeek/Vmeda.Online
Some elements return 0 for clientWidth even if they have a size in the final rendering, so we'll use getBoundingClientRect which is more reliable.
Some elements return 0 for clientWidth even if they have a size in the final rendering, so we'll use getBoundingClientRect which is more reliable.