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
cocostudio on mac: issue with percentage positions and sizes (c++) #14749
Comments
I have create sample item (just a layer with panel inside): Layer has size 120x120. if you just add item.csb onto the screen - it will appear (i guess it has some initial attributes setup); By performing next code we can get a panel itself and it's layout:
But in layout component:
So if not use dynamic layout - all works well. But if try to change size and perform doLayout - all is broken. |
Also noticed weird behavior for MainScene that created when starting new project in cocostudio:
So there is possibly some issue with Cocostudio for mac, as default scene bundled with new project parsed and presented by cocos2d-x successfully. |
Actually issue was in system language and in used delimiter for numbers. It works incorrectly when used 'comma' as delimiter. After changing system language to english it started to work correctly. |
When positions or sizes set to percentages them are rounded down.
E.g. if it set to 250% it will be rounded to 200%, if it set to 75% - it will be rounded to 0%.
http://discuss.cocos2d-x.org/t/cocostudio-percentage-positions-and-sizes-issue/25739
cocostudio 2.3.3
cocos2d-x 3.9
mac os x
The text was updated successfully, but these errors were encountered: