You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to be able to align items outside of a Flex element with the Flex element. However this seems challenging to do because the flex element itself has a center that is not aligned with the parent center.
Take this code, for example, viewable in this sandbox:
I would expect the rendered plane to be center aligned both vertically and horizontally with the Flex element, but the horizontal alignment is off. Is there a recommended way to achieve this?
The text was updated successfully, but these errors were encountered:
oveddan
changed the title
Center of entire flex element is not on parent object center.
Center of flex element is aligned with parent object center.
Oct 22, 2021
oveddan
changed the title
Center of flex element is aligned with parent object center.
Center of flex element is not aligned with parent object center.
Oct 22, 2021
@oveddan can you illustrate the result you're trying to achieve, cause i'm not entirely sure I understood you correctly? Although, I see at least one problem, you need to give Box a centerAnchor if children are the meshes/groups/or any threejs stuff (cause they use position as center, not top left), see the docs
I want to be able to align items outside of a
Flex
element with theFlex
element. However this seems challenging to do because the flex element itself has a center that is not aligned with the parent center.Take this code, for example, viewable in this sandbox:
This results in:
I would expect the rendered plane to be center aligned both vertically and horizontally with the
Flex
element, but the horizontal alignment is off. Is there a recommended way to achieve this?The text was updated successfully, but these errors were encountered: