Skip to content

Refactor ccui.ScrollView,ListView,PageView to correspond cocos2d-x v3.11 api. #3193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
Apr 9, 2016

Conversation

1scaR1
Copy link
Contributor

@1scaR1 1scaR1 commented Nov 27, 2015

I think api in html5 version is too old to use it in pair with cocos2d-x 3.9 lib(with js-bindings).
So i changed it using code base of cocos2d-x classes.

@1scaR1 1scaR1 changed the title Refactor cci.ScrollView,ListView,PageView to correspond cocos2d-x v3.9 api. Refactor ccui.ScrollView,ListView,PageView to correspond cocos2d-x v3.9 api. Nov 27, 2015
@1scaR1 1scaR1 changed the title Refactor ccui.ScrollView,ListView,PageView to correspond cocos2d-x v3.9 api. Refactor ccui.ScrollView,ListView,PageView to correspond cocos2d-x v3.11 api. Mar 30, 2016
@1scaR1
Copy link
Contributor Author

1scaR1 commented Mar 30, 2016

Synced with HEAD of cocos2d-x
@pandamicro , please review.

@zilongshanren
Copy link
Member

@1scaR1 Could you add some tests to verify your patch? I have fetched your patch and it works great with the old tests.

"extensions/ccui/uiwidgets/scroll-widget/UIScrollView.js",
"extensions/ccui/uiwidgets/scroll-widget/UIListView.js",
"extensions/ccui/uiwidgets/scroll-widget/UIPageView.js",
"extensions/ccui/uiwidgets/scroll-widget/UIPageViewIndicator.js",
"extensions/ccui/uiwidgets/scroll-widget/UIPageView.js",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"extensions/ccui/uiwidgets/scroll-widget/UIPageView.js", this line is duplicated.

@1scaR1
Copy link
Contributor Author

1scaR1 commented Apr 8, 2016

Duplication is fixed. Js-test are in progress.

@1scaR1
Copy link
Contributor Author

1scaR1 commented Apr 8, 2016

Added js-tests cocos2d/cocos2d-x#15398
They work with cocos2d/cocos2d-x#15397 (fixed some constants)

Some bugs were fixed with these tests :)

@zilongshanren
Copy link
Member

@1scaR1 Thanks, could you fix the merge conflicts? After the merge conflicts is fixed, I will merge your PR

…to develop

# Conflicts:
#	extensions/ccui/uiwidgets/scroll-widget/UIPageView.js

Conflicts resolved.
@1scaR1
Copy link
Contributor Author

1scaR1 commented Apr 9, 2016

Conflict resolved. Thanks!

@zilongshanren zilongshanren merged commit 64ff7a3 into cocos2d:develop Apr 9, 2016
@zilongshanren
Copy link
Member

@1scaR1 👍 merged.

@1scaR1
Copy link
Contributor Author

1scaR1 commented Apr 26, 2016

@ppawlak , @tqxie must be fixed by #3272
Please, check.

@ppawlak
Copy link

ppawlak commented Apr 26, 2016

@1scaR1 Yes, it fixed the issue for me (WebGL render). Thanks !

@ppawlak
Copy link

ppawlak commented May 12, 2016

@zilongshanren @1scaR1 Version 3.11 had just been released and the fix is not included, why ?
Background of my listview items is broken :(

@zilongshanren
Copy link
Member

@ppawlak
oops :(
I haven't notice the bug fix... Sorry..

Maybe you could apply it to v3.11 by yourself .

@ppawlak
Copy link

ppawlak commented May 12, 2016

@zilongshanren That's what I did, it's a trivial fix to apply. Problem is for other people not aware of it...

I just found an other issue with the ListView: http://discuss.cocos2d-x.org/t/cocos2d-x-v3-11-released/29253/14?u=nemoidstudio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants