Sets width/height atributes on the given element according to the size of its parent.
Elememnt to resize
Optional
Callback when resize happens
Timeout for debouncing events
Sets width/height atributes on the given element according to the size of its parent.