From 2ac729014d139ff9942c361d1bd52d0af5409c7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Chmiela?= Date: Tue, 6 Oct 2015 12:17:05 +0200 Subject: [PATCH] Do not cut expanded view When in landscape expanded views of buttons to the right get cut. Why? Because of this small mistake. --- CYRKeyboardButton/CYRKeyboardButtonView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CYRKeyboardButton/CYRKeyboardButtonView.m b/CYRKeyboardButton/CYRKeyboardButtonView.m index cb0ba2a..c4b2637 100644 --- a/CYRKeyboardButton/CYRKeyboardButtonView.m +++ b/CYRKeyboardButton/CYRKeyboardButtonView.m @@ -54,7 +54,7 @@ - (instancetype)initWithKeyboardButton:(CYRKeyboardButton *)button type:(CYRKeyb CGRect frame = [UIScreen mainScreen].bounds; if (UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation)) { - frame = CGRectMake(0, 0, CGRectGetHeight(frame), CGRectGetWidth(frame)); + frame = CGRectMake(0, 0, CGRectGetWidth(frame), CGRectGetHeight(frame)); } self = [super initWithFrame:frame];