Re-position width computation code.