use onContentReady instead of onElementReady

if the component is within tabs or a switchDisplay the widths have to be recalculated
do the callOnContentReady before the animation finishes

to prevent flickering
do the callonContentReady before changing the position to absolute

changing the position to absolute can distort the width of the element