Resizing works now when the parent container changes size