cocos2d-html5 icon indicating copy to clipboard operation
cocos2d-html5 copied to clipboard

Support alignment in CCUI linear layout

Open ntrrgc opened this issue 7 years ago • 4 comments

This allows to use left, center or right alignment in HBox nodes and top, center or bottom alignment in VBox nodes.

ntrrgc avatar Nov 15 '16 18:11 ntrrgc

@ntrrgc

This PR looks good to me. It is really an useful feature when dealing with Layout. But I suggest to add it to the C++ engine and make sure the Javascript bindings works.

And please also add an example to demonstrate this feature in https://github.com/cocos2d/cocos2d-x/tree/v3/tests/js-tests

If anything is unclear here, I would like to help.

Thanks.

zilongshanren avatar Dec 06 '16 05:12 zilongshanren

Hi, @ntrrgc is there a Cocos2d-x pr ?

pandamicro avatar Mar 15 '17 09:03 pandamicro

@pandamicro There you go: https://github.com/cocos2d/cocos2d-x/pull/17535

ntrrgc avatar Mar 17 '17 00:03 ntrrgc

That great ! Thanks ~

pandamicro avatar Mar 17 '17 05:03 pandamicro