We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
CCScrollView and CCTableView Improvement
CCScrollView and CCTableView Improvement
Does it also fix these issues?
http://www.cocos2d-x.org/boards/18/topics/17913
James Chen wrote:
h3. Refers to https://github.com/cocos2d/cocos2d-x/pull/1724.
>
This pull request fixes an issue with CCScrollView scrolling incorrectly if the container items do not fill or exceed the ScrollView bounds. The issue can be observed by modifying TableViewTestLayer::numberOfCellsInTableView(…) in the ExtensionsTest/TableViewTest project from 20 cells to 2 cells.
>
This pull request also adds additional functionality to the CCTableView delegates:
>
* 1) adds CCTableViewDelegate::tableCellHighlight(…) to inform the delegate that a table cell is currently being pressed. Thus allowing the implementer to highlight the cell or perform some animation and provide visual feedback of the press to the user.
>
* 2) adds CCTableViewDelegate::tableCellUnhighlight(…) to inform the delegate that a table cell is no longer being pressed. Thus allowing the implementer to unhighlight the cell or perform some animation and provide visual feedback of the release to the user.
Status: | Closed | |
---|---|---|
Start date: | 2012-12-06 | |
Priority: | Normal | |
Due date: | ||
Assignee: | ||
% Done: | 100% |
|
Category: | all | |
Target version: | cocos2d-2.1beta3-x-2.1.1 |
Refers to https://github.com/cocos2d/cocos2d-x/pull/1724.¶
This pull request fixes an issue with CCScrollView scrolling incorrectly if the container items do not fill or exceed the ScrollView bounds. The issue can be observed by modifying TableViewTestLayer::numberOfCellsInTableView(…) in the ExtensionsTest/TableViewTest project from 20 cells to 2 cells.
This pull request also adds additional functionality to the CCTableView delegates:
1) adds CCTableViewDelegate::tableCellHighlight(…) to inform the delegate that a table cell is currently being pressed. Thus allowing the implementer to highlight the cell or perform some animation and provide visual feedback of the press to the user.
2) adds CCTableViewDelegate::tableCellUnhighlight(…) to inform the delegate that a table cell is no longer being pressed. Thus allowing the implementer to unhighlight the cell or perform some animation and provide visual feedback of the release to the user.