Projects > cpp > Issues > Bug #4534

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

UI Layout

Bug #4534 [Closed]
ricardo 2014-03-24 23:15 . Updated about 9 years ago

UILayout code needs to be refactored.

First, from an API point of view we need VBox, HBox, etc...
Also, we need to delegate the layout code to the different subclasses.
Currently everything is coupled in a huge 400 lines function (doLayout) and it is very difficult to maintain and extend.

https://github.com/cocos2d/cocos2d-x/blob/6e069afe26cc05c916e6cef26a820092688b3570/cocos/ui/UILayout.cpp#L934

zhangxm 2014-03-25 02:00
  • Assignee set to Nutty
zhangxm 2014-03-28 08:34
  • Status changed from New to Closed

Atom PDF

Status:Closed
Start date:2014-03-24
Priority:Normal
Due date:
Assignee:Nutty
% Done:

0%

Category:-
Target version:3.0-rc1