提交 ab1af6db 编写于 作者: G guyuanzhang

Description:fix UIList margin support

Sig:graphic
Feature or Bugfix:Feature
Binary Source:No
上级 2340e4ea
......@@ -593,7 +593,7 @@ void UIList::MoveChildByOffset(int16_t xOffset, int16_t yOffset)
} else {
width = view->GetRelativeRect().GetWidth();
if ((GetChildrenHead()->GetX() - GetChildrenHead()->GetStyle(STYLE_MARGIN_LEFT) + xOffset >
selectPosition_) ||
selectPosition_) ||
(childrenTail_->GetX() + width + childrenTail_->GetStyle(STYLE_MARGIN_RIGHT) < selectPosition_)) {
onSelectedIndex_ = NULL_SELECT_INDEX;
onSelectedView_ = nullptr;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册