Solve the problem of rtl settings not taking effect.

Signed-off-by: sunfei <sunfei.sun@huawei.com>
Change-Id:  I00bdd9ceab406b5aae810f1533bf6b2eba14c58a
This commit is contained in:
jiangyingjie 2021-11-16 14:21:21 +08:00 committed by sunfei
parent a5a86c5771
commit d193e08e18

View File

@ -601,7 +601,7 @@ RefPtr<Component> ViewStackProcessor::WrapComponents()
} }
} }
auto iter = wrappingComponentsMap.find("box"); auto iter = wrappingComponentsMap.find("box");
if (iter != wrappingComponentsMap.end()) { if (iter != wrappingComponentsMap.end() && (iter->second->GetTextDirection() != component->GetTextDirection())) {
component->SetTextDirection(iter->second->GetTextDirection()); component->SetTextDirection(iter->second->GetTextDirection());
} }
return component; return component;