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

Commit

Permalink
[WEEX-503][iOS] Fix sometimes scale transform only set one of XY dire…
Browse files Browse the repository at this point in the history
…ction on iOS
  • Loading branch information
caixiaomin authored and cxfeng1 committed Jul 19, 2018
1 parent b83b191 commit f98704f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/sdk/WeexSDK/Sources/Component/WXTransform.m
Original file line number Diff line number Diff line change
Expand Up @@ -407,12 +407,12 @@ - (void)parseScale:(NSArray *)value

- (void)parseScalex:(NSArray *)value
{
[self parseScale:@[value[0], @1]];
_scaleX = [value[0] doubleValue];
}

- (void)parseScaley:(NSArray *)value
{
[self parseScale:@[@1, value[0]]];
_scaleY = [value[0] doubleValue];
}

// Angle in radians
Expand Down

0 comments on commit f98704f

Please sign in to comment.