From e6c6061bf3e65141786e531791f2719a1ceab7d4 Mon Sep 17 00:00:00 2001 From: tybenz Date: Sun, 2 Mar 2014 00:44:45 +0100 Subject: [PATCH] Limit the height of the image so as not push all text out of viewport --- Classes/MGMAdinline.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/MGMAdinline.m b/Classes/MGMAdinline.m index bd74214..e75f1a4 100644 --- a/Classes/MGMAdinline.m +++ b/Classes/MGMAdinline.m @@ -74,7 +74,7 @@ - (NSString *)filterHTMLString:(NSString *)theHTMLString content:(AIContentObjec WebView *webview = (WebView *)[[(id)[[[theContent chat] chatContainer] chatViewController] messageDisplayController] messageView]; shouldScroll = [webview stringByEvaluatingJavaScriptFromString:@"nearBottom();"]; } - NSString *image = [NSString stringWithFormat:@"", link, shouldScroll]; + NSString *image = [NSString stringWithFormat:@"", link, shouldScroll]; NSRange replaceRange = NSMakeRange(linkStartRange.location+linkStartRange.length, linkReplaceEndRange.location-(linkStartRange.location+linkStartRange.length)); [html replaceCharactersInRange:replaceRange withString:image]; range.location += [image length]-replaceRange.length; @@ -93,4 +93,4 @@ - (NSString *)filterHTMLString:(NSString *)theHTMLString content:(AIContentObjec - (CGFloat)filterPriority { return (CGFloat)LOWEST_FILTER_PRIORITY; } -@end \ No newline at end of file +@end