verygoodgraphics / vgg_runtime

The official implementation of VGG Specs with cross-platform vector graphics and user interfaces.
https://verygoodgraphics.com
Other
57 stars 5 forks source link

When resizing the frame, the text does not layout correctly #364

Closed elff1 closed 2 months ago

elff1 commented 3 months ago

Detailed description

A frame contains two texts with auto layout.

image

When reducing the frame's width, the text does not layout correctly.

Expected behavior

When the first text wraps automatically, the second text should automatically move down.

image

Actual behavior

When the first text wraps automatically, the second text does not move down, causing it to overlap with the first text.

image

Steps to reproduce

text layout.zip

  1. Convert the Figma file to Daruma.
  2. Use sdl_runtime to render the Daruma file.
  3. Reduce the frame's width.

Additional information

No response