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

Commit

Permalink
[ios] fixed layout.cpp crash in scrollercomponent
Browse files Browse the repository at this point in the history
  • Loading branch information
Klueze committed Jan 10, 2019
1 parent 6c77249 commit 0e80f83
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ios/sdk/WeexSDK/Sources/Component/WXScrollerComponent.mm
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,7 @@ - (void)adjustForRTL

// this is scroll rtl solution.
// scroll layout not use direction, use self tranform
if (self.view && _flexCssNode && _flexCssNode->getLayoutDirectionFromPathNode() == WeexCore::kDirectionRTL
) {
if (self.view && [self isDirectionRTL]) {
if (_transform) {
self.view.layer.transform = CATransform3DConcat(self.view.layer.transform, CATransform3DScale(CATransform3DIdentity, -1, 1, 1));
} else {
Expand Down

0 comments on commit 0e80f83

Please sign in to comment.