Call a callback when an element has been laid out with css