cocos2d / cocos2d-x

Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.
https://www.cocos.com/en/cocos2d-x
18.14k stars 7.05k forks source link

TableVie->setVerticalFillOrder() is imperfect #13402

Open folgerhu opened 9 years ago

folgerhu commented 9 years ago

Cocos 2d-x v3.7

tableView->setDirection(ScrollView::Direction::VERTICAL);
tableView->setVerticalFillOrder(TableView::VerticalFillOrder::BOTTOM_UP);

tableView->setDirection(ScrollView::Direction::VERTICAL);
tableView->setVerticalFillOrder(TableView::VerticalFillOrder::TOP_DOWN);

tableView->setDirection(ScrollView::Direction::HORIZONTAL);
tableView->setVerticalFillOrder(TableView::VerticalFillOrder::BOTTOM_UP);

tableView->setDirection(ScrollView::Direction::HORIZONTAL);
tableView->setVerticalFillOrder(TableView::VerticalFillOrder::TOP_DOWN);

VERTICAL & VerticalFillOrder::BOTTOM_UP 1

VERTICAL & VerticalFillOrder::TOP_DOWN 2

HORIZONTAL & VerticalFillOrder::BOTTOM_UP 3

HORIZONTAL & VerticalFillOrder::TOP_DOWN 4

Why (HORIZONTAL & VerticalFillOrder::BOTTOM_UP) data sorting order is not like (VERTICAL & VerticalFillOrder::BOTTOM_UP)? How can i do this? Can you provide an a function as 'setHorizontalFillOrder'?

zilongshanren commented 9 years ago

@folgerhu I will add cell reuse to ListView, So tableView improve doesn't have such a high priority now.