Fix on Heigh and Width when one of them is 0 and proportions are kept