formatting and comments

This commit is contained in:
Jesse Squires
2013-04-03 12:10:02 -04:00
parent 4a0afb9cd5
commit e6045f2dd0
2 changed files with 9 additions and 6 deletions

View File

@@ -37,7 +37,7 @@
#import "JSBubbleView.h"
#import "NSString+JSMessagesView.h"
#define SEND_BUTTON_WIDTH 78.f
#define SEND_BUTTON_WIDTH 78.0f
@interface JSMessageInputView ()

View File

@@ -53,10 +53,10 @@
#pragma mark - Initialization
- (void)setup
{
if ([self.view isKindOfClass:[UIScrollView class]])
{
((UIScrollView*)self.view).scrollEnabled = NO;
}
if([self.view isKindOfClass:[UIScrollView class]]) {
// fix for ipad modal form presentations
((UIScrollView *)self.view).scrollEnabled = NO;
}
CGSize size = self.view.frame.size;
@@ -327,8 +327,11 @@
CGRect inputViewFrame = self.inputView.frame;
CGFloat inputViewFrameY = keyboardY - inputViewFrame.size.height;
// for ipad modal form presentations
CGFloat messageViewFrameBottom = self.view.frame.size.height - INPUT_HEIGHT;
if (inputViewFrameY > messageViewFrameBottom) inputViewFrameY = messageViewFrameBottom;
if(inputViewFrameY > messageViewFrameBottom)
inputViewFrameY = messageViewFrameBottom;
self.inputView.frame = CGRectMake(inputViewFrame.origin.x,
inputViewFrameY,