How to auto fit disply?

fit display karne ke liye kya kare