!38362 grid新增alignItems接口dump

Merge pull request !38362 from tomkl123/20240721_alignitems_dump
This commit is contained in:
openharmony_ci 2024-07-21 09:03:31 +00:00 committed by Gitee
commit 3ea5804a26
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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");