Fixed resize calculation on orientation change.