How to get size widget with "size to content"

No, i didn’t this