Angular directive for auto resizing the element based on the parent current size.