Skip to content

Commit

Permalink
* Fix black blob on tabs that have no icon
Browse files Browse the repository at this point in the history
  • Loading branch information
joehewitt committed Apr 10, 2009
1 parent 248105a commit 2df5f69
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions samples/TTCatalog/Classes/RootViewController.m
Expand Up @@ -55,9 +55,9 @@ - (void)viewDidLoad {
[nav addView:@"imageTest2" controller:[TableImageTestController class]];
[nav addView:@"scrollViewTest" controller:[ScrollViewTestController class]];

[self validateView];
NSIndexPath* indexPath = [NSIndexPath indexPathForRow:0 inSection:3];
[self.tableView touchRowAtIndexPath:indexPath animated:NO];
// [self validateView];
// NSIndexPath* indexPath = [NSIndexPath indexPathForRow:1 inSection:3];
// [self.tableView touchRowAtIndexPath:indexPath animated:NO];
}

///////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down
2 changes: 0 additions & 2 deletions src/TTStyleSheet.m
@@ -1,7 +1,5 @@
#import "Three20/TTStyleSheet.h"
#import "Three20/TTDefaultStyleSheet.h"
#import "Three20/TTStyle.h"
#import "Three20/TTShape.h"

///////////////////////////////////////////////////////////////////////////////////////////////////
// global
Expand Down
2 changes: 2 additions & 0 deletions src/TTTabBar.m
Expand Up @@ -378,6 +378,7 @@ - (id)initWithItem:(TTTabItem*)tabItem tabBar:(TTTabBar*)tabBar style:(TTTabBarS
_iconView = [[TTImageView alloc] initWithFrame:CGRectZero];
_iconView.contentMode = UIViewContentModeRight;
_iconView.clipsToBounds = YES;
_iconView.backgroundColor = [UIColor clearColor];
[self addSubview:_iconView];

_titleLabel = [[UILabel alloc] initWithFrame:CGRectZero];
Expand Down Expand Up @@ -545,6 +546,7 @@ - (void)setTabItem:(TTTabItem*)tabItem {

_titleLabel.text = _tabItem.title;
_iconView.url = _tabItem.icon;
_iconView.hidden = !_tabItem.icon;
if (_tabItem.badgeNumber) {
[self updateBadgeNumber];
}
Expand Down

0 comments on commit 2df5f69

Please sign in to comment.