提交 5a282f8e 编写于 作者: Y YueBiang

fix UIList bug

Signed-off-by: NYueBiang <suyue7@huawei.com>
上级 d6ddb446
......@@ -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_);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册