mirror of https://github.com/axmolengine/axmol.git
refactor ListView, add do Layout
This commit is contained in:
parent
652c214374
commit
c6cb3a56fb
|
@ -437,9 +437,10 @@ void ListView::refreshView()
|
|||
updateInnerContainerSize();
|
||||
}
|
||||
|
||||
void ListView::sortAllChildren()
|
||||
void ListView::doLayout()
|
||||
{
|
||||
ScrollView::sortAllChildren();
|
||||
Layout::doLayout();
|
||||
|
||||
if (_refreshViewDirty)
|
||||
{
|
||||
refreshView();
|
||||
|
|
|
@ -161,7 +161,8 @@ public:
|
|||
|
||||
float getItemsMargin()const;
|
||||
|
||||
virtual void sortAllChildren() override;
|
||||
virtual void doLayout() override;
|
||||
|
||||
virtual void addChild(Node * child) override;
|
||||
virtual void addChild(Node * child, int zOrder) override;
|
||||
virtual void addChild(Node* child, int zOrder, int tag) override;
|
||||
|
|
|
@ -1587,7 +1587,6 @@ void ScrollView::interceptTouchEvent(Widget::TouchEventType event, Widget *sende
|
|||
|
||||
case TouchEventType::CANCELED:
|
||||
case TouchEventType::ENDED:
|
||||
handleReleaseLogic(touchPoint);
|
||||
handleReleaseLogic(touchPoint);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue