From 1a4267c1aef29fecec762640fc5da9980c1a88ce Mon Sep 17 00:00:00 2001 From: tomkl123 Date: Sun, 21 Jul 2024 10:54:27 +0800 Subject: [PATCH] =?UTF-8?q?grid=E6=96=B0=E5=A2=9EalignItems=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: tomkl123 Change-Id: I4bc1e84b9480d95fc2b25421cbec439a3fadb43e --- .../core/components_ng/pattern/grid/grid_pattern.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/frameworks/core/components_ng/pattern/grid/grid_pattern.cpp b/frameworks/core/components_ng/pattern/grid/grid_pattern.cpp index adf63ec3498..9967ec1f9e0 100644 --- a/frameworks/core/components_ng/pattern/grid/grid_pattern.cpp +++ b/frameworks/core/components_ng/pattern/grid/grid_pattern.cpp @@ -1721,6 +1721,16 @@ void GridPattern::DumpAdvanceInfo() property->GetScrollEnabled().has_value() ? DumpLog::GetInstance().AddDesc("ScrollEnabled:" + std::to_string(property->GetScrollEnabled().value())) : DumpLog::GetInstance().AddDesc("ScrollEnabled:null"); + switch (property->GetAlignItems().value_or(GridItemAlignment::DEFAULT)) { + case GridItemAlignment::STRETCH: { + DumpLog::GetInstance().AddDesc("AlignItems:GridItemAlignment.STRETCH"); + break; + } + default: { + DumpLog::GetInstance().AddDesc("AlignItems:GridItemAlignment.DEFAULT"); + break; + } + } switch (gridLayoutInfo_.scrollAlign_) { case ScrollAlign::NONE: { DumpLog::GetInstance().AddDesc("ScrollAlign:NONE");