Replies: 1 comment 1 reply
-
As I keep working on this, the issue seems to be that the padding/border passed in |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
CleanShot.2024-02-22.at.11.15.15.mp4
Notice the title text (to the right of the pink number), the inner blue rect is the padded rect (
layout.size
shrunk by the 20px inlayout.padding
). When shrinking the window, the rendered text wraps before the measured text wraps. The reason seems to be that when measuring, the available_size does not include padding.Is the measure function supposed to add padding+border to the measured text size? I don't see that being done in the examples so maybe I'm doing something else wrong.
Beta Was this translation helpful? Give feedback.
All reactions