-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Description
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:
<group position-z={-1}>
<Flex flexDirection="row" alignItems="baseline">
<Box>
<mesh scale-y={1.5} >
<meshBasicMaterial color="green" />
<boxBufferGeometry />
</mesh>
</Box>
<Box>
<mesh>
<meshBasicMaterial color="red" />
<boxBufferGeometry />
</mesh>
</Box>
</Flex>
<mesh scale-y={1.5} >
<meshBasicMaterial color="yellow"/>
<planeBufferGeometry args={[2,2]} />
</mesh>
</group>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?
Metadata
Metadata
Assignees
Labels
No labels
