Ensure that extraHorizontalOffset is correctly initialized.