Sure it's possible. As I said, whatever is anchored / resized needs to be a sibling of the content. It can't be a child of that content.
You can't have some widget resizing its size based on the dimensions of its parent, as it would include its own dimensions. You'd be resizing a widget based on its own dimensions -- it makes no sense.