-
Notifications
You must be signed in to change notification settings - Fork 421
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
Widget Alignment.md Document Suggestions #698
Comments
Thank you very much for your feedback and we will revise it as soon as possible! |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
URL : https://github.com/cocos-creator/creator-docs/blob/master/en/ui/widget-align.md
Just some suggestions to improve the doc. :)
Alignment
sStrategyTo
realizeachieve a perfect multi-resolution fit effect..Such an effect can be realized byWe can do this with the Widget component.Buttons and small elements that need to be aligned by bordersAligning Buttons and Small Elements with the Border
ThenOnly a few simple steps are needed:Taking alignmentTo Align something with the bottom left corner of the screen foras anexample,open the alignment ofcheck the Left and Bottom tick boxes in the Widget component.the left margin is set as 50px,
rightthe bottom margin is set as 30px.After setting up the Widget component like this~~,~~ no matter what the actual screen resolution is**/extra space/** , this node element will remain
onat the bottom left corner of the screen.For example, Left is ticked
offon in the above exampleNesting
aAlignmenteElementsThe method of aligning with the border of the screen is introduced above.We just showed how to align something with the border of the screen in the example above.
Next, we will useHere's a simple example to explain it. Supposinge we have a nodehierarchical relationhierarchy as follows:We can
respectivelyadd Widget components to **both of ** thesetwonodesThe text was updated successfully, but these errors were encountered: