1 parent 8766433 commit 398c606Copy full SHA for 398c606
1 file changed
SCLAlertView/SCLButton.m
@@ -63,9 +63,9 @@ - (void)setupWithWindowWidth:(CGFloat)windowWidth
63
self.layer.cornerRadius = 3.0f;
64
}
65
66
-- (void)adjustWidthWithWindowWidth:(CGFloat)windowWidht numberOfButtons:(NSUInteger)numberOfButtons
+- (void)adjustWidthWithWindowWidth:(CGFloat)windowWidth numberOfButtons:(NSUInteger)numberOfButtons
67
{
68
- CGFloat allButtonsWidth = windowWidht - (MARGIN_BUTTON * 2);
+ CGFloat allButtonsWidth = windowWidth - (MARGIN_BUTTON * 2);
69
CGFloat buttonWidth = (allButtonsWidth - ((numberOfButtons - 1) * 10)) / numberOfButtons;
70
71
self.frame = CGRectMake(0.0f, 0.0f, buttonWidth, MIN_HEIGHT);
0 commit comments