| Index: ios/chrome/browser/ui/reading_list/reading_list_toolbar.mm
|
| diff --git a/ios/chrome/browser/ui/reading_list/reading_list_toolbar.mm b/ios/chrome/browser/ui/reading_list/reading_list_toolbar.mm
|
| index 1827e261c78012b90a8c6d5bc40631362fbadd3f..838ccc552947b321bab6fba69223c273c46d2c6e 100644
|
| --- a/ios/chrome/browser/ui/reading_list/reading_list_toolbar.mm
|
| +++ b/ios/chrome/browser/ui/reading_list/reading_list_toolbar.mm
|
| @@ -250,38 +250,32 @@ typedef NS_ENUM(NSInteger, ButtonPositioning) { Leading, Centered, Trailing };
|
| [[button titleLabel]
|
| setFont:[[MDCTypography fontLoader] regularFontOfSize:14]];
|
|
|
| - NSTextAlignment textAlignement;
|
| UIControlContentHorizontalAlignment horizontalAlignement;
|
|
|
| switch (position) {
|
| case Leading:
|
| if (UseRTLLayout()) {
|
| horizontalAlignement = UIControlContentHorizontalAlignmentRight;
|
| - textAlignement = NSTextAlignmentRight;
|
| } else {
|
| horizontalAlignement = UIControlContentHorizontalAlignmentLeft;
|
| - textAlignement = NSTextAlignmentLeft;
|
| }
|
| break;
|
|
|
| case Centered:
|
| horizontalAlignement = UIControlContentHorizontalAlignmentCenter;
|
| - textAlignement = NSTextAlignmentCenter;
|
| break;
|
|
|
| case Trailing:
|
| if (UseRTLLayout()) {
|
| horizontalAlignement = UIControlContentHorizontalAlignmentLeft;
|
| - textAlignement = NSTextAlignmentLeft;
|
| } else {
|
| horizontalAlignement = UIControlContentHorizontalAlignmentRight;
|
| - textAlignement = NSTextAlignmentRight;
|
| }
|
| break;
|
| }
|
|
|
| button.contentHorizontalAlignment = horizontalAlignement;
|
| - button.titleLabel.textAlignment = textAlignement;
|
| + button.titleLabel.textAlignment = NSTextAlignmentCenter;
|
|
|
| return button;
|
| }
|
|
|