diff --git a/frameworks/components/ui_list.cpp b/frameworks/components/ui_list.cpp index 0f3f81744f25e2cba4664703cdcb86aec6cb64f6..9da059e8137806f61b1c2c75a499f0b9b856a795 100755 --- a/frameworks/components/ui_list.cpp +++ b/frameworks/components/ui_list.cpp @@ -546,7 +546,7 @@ void UIList::PushBack(UIView* view) if (direction_ == VERTICAL) { view->SetPosition(0, childrenTail_->GetY() + childrenTail_->GetHeightWithMargin()); } else { - view->SetPosition(childrenTail_->GetX() + childrenTail_->GetHeightWithMargin(), 0); + view->SetPosition(childrenTail_->GetX() + childrenTail_->GetWidthWithMargin(), 0); } bottomIndex_ = GetIndexInc(bottomIndex_); }