Skip to content

Commit

Permalink
Resolved inifinite loop in FloatingButtonExampleViewController. (#7675)
Browse files Browse the repository at this point in the history
Removed incorrect calls setting translatesAutoresizingMaskIntoConstraints = NO

closes #7632
  • Loading branch information
aufflick authored and featherless committed Jun 25, 2019
1 parent 37a495b commit b3290cd
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ - (void)viewDidLoad {

self.miniFloatingButton = [[MDCFloatingButton alloc] initWithFrame:CGRectZero
shape:MDCFloatingButtonShapeMini];
self.miniFloatingButton.translatesAutoresizingMaskIntoConstraints = NO;
[self.miniFloatingButton setImage:plusImage forState:UIControlStateNormal];
self.miniFloatingButton.accessibilityLabel = kMiniButtonLabel;
[self.miniFloatingButton setMinimumSize:CGSizeMake(96, 40)
Expand All @@ -65,13 +64,11 @@ - (void)viewDidLoad {
[self.miniFloatingButton applySecondaryThemeWithScheme:self.containerScheme];

self.defaultFloatingButton = [[MDCFloatingButton alloc] init];
self.defaultFloatingButton.translatesAutoresizingMaskIntoConstraints = NO;
[self.defaultFloatingButton setImage:plusImage forState:UIControlStateNormal];
self.defaultFloatingButton.accessibilityLabel = kButtonLabel;
[self.defaultFloatingButton applySecondaryThemeWithScheme:self.containerScheme];

self.largeIconFloatingButton = [[MDCFloatingButton alloc] init];
self.largeIconFloatingButton.translatesAutoresizingMaskIntoConstraints = NO;
[self.largeIconFloatingButton setImage:plusImage36 forState:UIControlStateNormal];
self.largeIconFloatingButton.accessibilityLabel = kButtonLabel;
[self.largeIconFloatingButton setContentEdgeInsets:UIEdgeInsetsMake(-6, -6, -6, 0)
Expand Down

0 comments on commit b3290cd

Please sign in to comment.