-
-
Notifications
You must be signed in to change notification settings - Fork 458
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
[Question] positioning nested groups #747
Comments
Thanks for posting with a great example. This is a bug. Working on it 👍 |
This patch fixes the underlying issue: #755 But, your question is still valid. How do nested elements layout? Hopefully the below helps clarify your question:
|
@jonobr1 Thank you for looking into this. I've update the pen but am still seeing issues. I might be doing something wrong still. I added The change I made looks like menu.position.x = world.width / 2;
menu.position.y = world.height / 2;
+ menu.center(); |
I haven't published the changes yet to NPM. You'll need to use the GitHub dev branch until I do. |
urggh, how silly of me. Thanks! |
Describe your question
I'm having issues trying to align nested groups. It's quite possible I am doing this wrong, so it's a question for now, rather than viewing this as a bug.
Your code (either pasted here, or a link to a hosted example)
a simple CodePen is here, https://codepen.io/johnpaulharold/pen/EaYyjOa
Screenshots
a grab of what the codepen shows
Environment (please select one):
If applicable:
Desktop (please complete the following information):
Additional context
My expectation with the code is that the group of 3 red buttons should be aligned to that the vertical guideline appears to cut straight through the middle of the menu, which should be the "B" button. Instead, it appears as though only the first button in the group is considered. Am I doing something wrong here?
The text was updated successfully, but these errors were encountered: