From d193e08e18c581f18f0c54c693db41d6df3e3d87 Mon Sep 17 00:00:00 2001 From: jiangyingjie Date: Tue, 16 Nov 2021 14:21:21 +0800 Subject: [PATCH] Solve the problem of rtl settings not taking effect. Signed-off-by: sunfei Change-Id: I00bdd9ceab406b5aae810f1533bf6b2eba14c58a --- frameworks/bridge/declarative_frontend/view_stack_processor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/bridge/declarative_frontend/view_stack_processor.cpp b/frameworks/bridge/declarative_frontend/view_stack_processor.cpp index 83fc3afe76e..648bf545e4e 100644 --- a/frameworks/bridge/declarative_frontend/view_stack_processor.cpp +++ b/frameworks/bridge/declarative_frontend/view_stack_processor.cpp @@ -601,7 +601,7 @@ RefPtr ViewStackProcessor::WrapComponents() } } auto iter = wrappingComponentsMap.find("box"); - if (iter != wrappingComponentsMap.end()) { + if (iter != wrappingComponentsMap.end() && (iter->second->GetTextDirection() != component->GetTextDirection())) { component->SetTextDirection(iter->second->GetTextDirection()); } return component;