Commit 296a5631 authored by jlebel's avatar jlebel Committed by Commit bot

'Continue as' button should be truncated at the end.

This should look better when the user name is too long.


Related to b/36958290


Cr-Commit-Position: refs/heads/master@{#467274}
parent d1d30ace
...@@ -61,6 +61,7 @@ const CGFloat kButtonHeight = 36; ...@@ -61,6 +61,7 @@ const CGFloat kButtonHeight = 36;
_primaryButton = [[MDCFlatButton alloc] init]; _primaryButton = [[MDCFlatButton alloc] init];
_primaryButton.translatesAutoresizingMaskIntoConstraints = NO; _primaryButton.translatesAutoresizingMaskIntoConstraints = NO;
_primaryButton.accessibilityIdentifier = @"signin_promo_primary_button"; _primaryButton.accessibilityIdentifier = @"signin_promo_primary_button";
_primaryButton.titleLabel.lineBreakMode = NSLineBreakByTruncatingTail;
[_primaryButton addTarget:self [_primaryButton addTarget:self
action:@selector(onPrimaryButtonAction:) action:@selector(onPrimaryButtonAction:)
forControlEvents:UIControlEventTouchUpInside]; forControlEvents:UIControlEventTouchUpInside];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment