提交 aa24e090 编写于 作者: L lancer

Description:修改代码格式

Sig:graphic
Feature or Bugfix:Bugfix
Binary Source:No
Signed-off-by: Nlancer <haoshuo@huawei.com>
上级 e87ff19f
......@@ -355,14 +355,15 @@ bool UIList::MoveOffset(int16_t x, int16_t y)
}
if (direction_ == VERTICAL && !isLoopList_) {
if (childrenHead_ && (childrenHead_->GetViewIndex() == startIndex_) &&
(childrenHead_->GetRelativeRect().GetTop() == (GetStyle(STYLE_PADDING_TOP) + GetStyle(STYLE_BORDER_WIDTH)))) {
if (childrenHead_ && (childrenHead_->GetViewIndex() == startIndex_) &&
(childrenHead_->GetRelativeRect().GetTop() == (GetStyle(STYLE_PADDING_TOP) + GetStyle(STYLE_BORDER_WIDTH)))) {
if (scrollListener_) {
scrollListener_->OnScrollTop(childrenHead_->GetViewIndex(), childrenHead_);
}
}
if (childrenTail_ && (recycle_.GetView(childrenTail_->GetViewIndex() + 1) == nullptr) &&
(childrenTail_->GetRelativeRect().GetBottom() + 1 == (GetRect().GetHeight() - GetStyle(STYLE_PADDING_BOTTOM) - GetStyle(STYLE_BORDER_WIDTH)))) {
if (childrenTail_ && (recycle_.GetView(childrenTail_->GetViewIndex() + 1) == nullptr) &&
(childrenTail_->GetRelativeRect().GetBottom() + 1 ==
(GetRect().GetHeight() - GetStyle(STYLE_PADDING_BOTTOM) - GetStyle(STYLE_BORDER_WIDTH)))) {
if ((scrollListener_)) {
scrollListener_->OnScrollBottom(childrenTail_->GetViewIndex(), childrenTail_);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册