Skip to content
Browse files

Trying to fix tableViewCell issues

  • Loading branch information...
1 parent 3669cc5 commit 2c4843039d6b52dca4f69de8c249a74be45da4a0 Blain Hamon committed Oct 20, 2009
Showing with 3 additions and 1 deletion.
  1. +2 −1 iphone/Classes/TitaniumTableViewController.m
  2. +1 −0 iphone/Classes/WebTableViewCell.m
View
3 iphone/Classes/TitaniumTableViewController.m
@@ -583,7 +583,8 @@ - (UITableViewCell *)tableView:(UITableView *)ourTableView cellForRowAtIndexPath
if (htmlString != nil){ //HTML cell
result = [ourTableView dequeueReusableCellWithIdentifier:@"html"];
if (result == nil) {
- result = [[[WebTableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:@"html"] autorelease];
+ CGRect standardSize = CGRectMake(0, 0, 280, 30);
+ result = [[[WebTableViewCell alloc] initWithFrame:standardSize reuseIdentifier:@"html"] autorelease];
}
[(WebTableViewCell *)result setHTML:htmlString];
View
1 iphone/Classes/WebTableViewCell.m
@@ -66,6 +66,7 @@ - (UIWebView *) giveCleanWebView;
[result setExclusiveTouch:NO];
[result setUserInteractionEnabled:NO];
[result setBackgroundColor:[UIColor clearColor]];
+ [result setScalesPageToFit:NO];
[result setOpaque:NO];
NSString * injection = [NSString stringWithFormat:@"document.write('%@')",baseMessage];
[result stringByEvaluatingJavaScriptFromString:injection];

0 comments on commit 2c48430

Please sign in to comment.
Something went wrong with that request. Please try again.