layout
layout copied to clipboard
sprite element size incorrect
Hi,
Is this a bug? can anybody help me I try to create a flex layout row, with the first element being an image of fixed size, 40 * 40, and the second element being a text filling the rest space.
However, the image becomes super large with no reason...
<pixiContainer layout={{ flexDirection: 'row', height: 40, alignItems: 'center' }}> <pixiSprite layout={{ width:40, height:40 }} texture={iconTexture} /> <pixiText layout={{ flexGrow:1 }} text={title} /> </pixiContainer>