layout icon indicating copy to clipboard operation
layout copied to clipboard

sprite element size incorrect

Open juanchaopan opened this issue 6 months ago • 0 comments

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>

Image

juanchaopan avatar May 29 '25 18:05 juanchaopan