How to set automatically resize content Model

How to automatically scale a Model screen according to its contents