Calculate height automatically. bugid:109907