Getting height and width of another item

Getting height and width of another item would make it much more accurate and easier to dynamically resize an item

Being able to, for example find the exact with and height a text item is occupying, would be great and would allow for text borders that could span over multiple lines of text (which is currently impossible afaik).