core icon indicating copy to clipboard operation
core copied to clipboard

dynamically resizing Text without a relayout doesn't get the full space

Open rcoreilly opened this issue 5 months ago • 1 comments

Describe the bug

e.g., in the cogent code status label, if we don't allocate the label itself with Pw(90) (which we do now), then it just gets exactly what it needs at layout time, such that if you then do UpdateRender to update on it, even if the parent widget has plenty of room leftover for it, it doesn't use it.

In principle it should have more Alloc left over beyond its Actual that it uses. But unless it has an actual Grow factor, this is not true: if you don't grow, you don't get extra Alloc or Actual. Maybe need to change this?

Anyway, first need a simple test case and should be pretty easy to fix.

How to reproduce

test case needed!

Example code


Relevant output


Platform

macOS

rcoreilly avatar Jul 15 '25 09:07 rcoreilly

Even when it has an actual grow factor it doesn't work.

kkoreilly avatar Jul 15 '25 16:07 kkoreilly