Skip to content

Commit

Permalink
Fixes #27
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongwuzw committed May 26, 2019
1 parent 72ab909 commit 4e4bf64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 22 deletions.
20 changes: 0 additions & 20 deletions WebBrowser/MultiWindow/View/CardCollectionViewCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,29 +35,9 @@ - (void)prepareForReuse{
self.imageView.image = nil;
}

//- (void)layoutSubviews{
// [super layoutSubviews];
//
//// self.contentView.layer.shadowColor = [UIColor blackColor].CGColor;
//// self.contentView.layer.shadowOffset = CGSizeMake(0.0f, -20.0f);
//// self.contentView.layer.shadowOpacity = 0.6f;
//// self.contentView.layer.shadowRadius = 20.0f;
//// self.contentView.layer.shadowPath = [UIBezierPath bezierPathWithRect:self.contentView.bounds].CGPath;
//// self.contentView.layer.shouldRasterize = YES;
////
//// CGRect rect = self.bounds;
//// rect.size.width -= 9;
//// self.layer.shadowPath = [UIBezierPath bezierPathWithRoundedRect:rect cornerRadius:Cell_Corner_Radius].CGPath;
//// self.layer.shadowOffset = CGSizeMake(4, -2);
//// self.layer.shadowOpacity = 0.5f;
//// self.layer.shadowColor = [[UIColor blackColor] colorWithAlphaComponent:0.5f].CGColor;
//}

- (void)commonInit{
// self.backgroundColor = UIColorFromRGB(0xE6E6E7);
self.backgroundColor = [UIColor whiteColor];
self.contentView.clipsToBounds = YES;
// self.layer.cornerRadius = Cell_Corner_Radius;

self.imageView = ({
UIImageView *imageView = [[UIImageView alloc] initWithFrame:self.bounds];
Expand Down
4 changes: 2 additions & 2 deletions WebBrowser/Utils/Macro/MacroConstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
#define TOP_TOOL_BAR_HEIGHT 70
#define TOP_TOOL_BAR_THRESHOLD 45

#define Card_Cell_Close_Width 22
#define Card_Cell_Close_Height 22
#define Card_Cell_Close_Width 50
#define Card_Cell_Close_Height 50

#define TEXT_FIELD_PLACEHOLDER @"搜索或输入网址"

Expand Down

0 comments on commit 4e4bf64

Please sign in to comment.