Skip to content

Commit

Permalink
Fixes a toolbar issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hackiftekhar committed Jun 28, 2014
1 parent c908493 commit 9d035cc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Binary file not shown.
9 changes: 7 additions & 2 deletions KeyboardTextFieldDemo/IQKeyBoardManager/IQToolbar.m
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,13 @@ -(CGSize)sizeThatFits:(CGSize)size
{
CGSize sizeThatFit = [super sizeThatFits:size];

//Issue #52 fix
sizeThatFit.width = [[[self viewController] view] width];
UIView *view = [[self viewController] view];

if (view)
{
//Issue #52 fix
sizeThatFit.width = [[[self viewController] view] width];
}

return sizeThatFit;
}
Expand Down

0 comments on commit 9d035cc

Please sign in to comment.