Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[iOS] Fix spelling error. (#1669)
Browse files Browse the repository at this point in the history
  • Loading branch information
wqyfavor authored and cxfeng1 committed Nov 5, 2018
1 parent 2187889 commit 74ffe14
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ios/sdk/WeexSDK/Sources/Component/WXCellComponent.mm
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ - (void)removeFromSuperview
// do nothing
}

- (BOOL)_isCaculatedFrameChanged:(CGRect)frame
- (BOOL)_isCalculatedFrameChanged:(CGRect)frame
{
/*
For list(aka UITableView), we cannot ignore left value generated by layout engine.
Expand Down
2 changes: 1 addition & 1 deletion ios/sdk/WeexSDK/Sources/Component/WXComponent_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ typedef id (^WXDataBindingBlock)(NSDictionary *data, BOOL *needUpdate);

- (void)_setRenderObject:(void *)object;

- (BOOL)_isCaculatedFrameChanged:(CGRect)frame;
- (BOOL)_isCalculatedFrameChanged:(CGRect)frame;

- (CGFloat)_getInnerContentMainSize;

Expand Down
2 changes: 1 addition & 1 deletion ios/sdk/WeexSDK/Sources/Component/WXHeaderComponent.mm
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ - (void)_removeFromSupercomponent
[self.delegate headerDidRemove:self];
}

- (BOOL)_isCaculatedFrameChanged:(CGRect)frame
- (BOOL)_isCalculatedFrameChanged:(CGRect)frame
{
return !CGSizeEqualToSize(frame.size, _calculatedFrame.size); // only compares sizes
}
Expand Down
2 changes: 1 addition & 1 deletion ios/sdk/WeexSDK/Sources/Manager/WXComponentManager.mm
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ - (void)layoutComponent:(WXComponent*)component frame:(CGRect)frame innerMainSiz
}
}

if ([component _isCaculatedFrameChanged:frame]) {
if ([component _isCalculatedFrameChanged:frame]) {
[component _assignCalculatedFrame:frame];
[component _assignInnerContentMainSize:innerMainSize];
[component _frameDidCalculated:YES];
Expand Down
2 changes: 1 addition & 1 deletion ios/sdk/WeexSDK/Sources/Model/WXComponent.mm
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ - (void)_assignInnerContentMainSize:(CGFloat)value
{
}

- (BOOL)_isCaculatedFrameChanged:(CGRect)frame
- (BOOL)_isCalculatedFrameChanged:(CGRect)frame
{
return !CGRectEqualToRect(frame, _calculatedFrame);
}
Expand Down

0 comments on commit 74ffe14

Please sign in to comment.