Is there a reason for using a clone instead of the same element? The css could potentially differ. Also this should take into account the width of the element when it's not positioned absolutely.