Automatic width with magic texts?

Hi all!

When setting the automatic width, it only works with assigned texts, but when putting a magic text, this width can vary. What I want is to put another element with a link pasted to its right, and make it fit its width. Does anyone have this problem? Is there a solution?