Implement resizesToContents
Add a couple of examples