Fixing the mMaxInputWidth scaling bug