On Wed, Jan 10, 2018 at 6:20 AM, Christopher Lemmer Webber <
cweb...@dustycloud.org> wrote:

> So now I've got some text that renders okay, it line wraps, etc etc.
> The problem is, I want to add a panel with a bunch of these, and I want
> each of these "rich text" things to be exactly the height of their
> contents.  I can't figure out how to do it... either I have
> stretchable-text set to #t and I'm stuck with whatever size it scales
> to, or I set stretchable-text to #f and the rich text canvas is only a
> few pixels high... not enough to see any content.
>

Maybe you can set the correct width and height afterwards using `min-width`
and `min-height`:
https://docs.racket-lang.org/gui/area___.html?q=min-height#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._area~3c~25~3e%29._min-width%29%29

Also take a look at `reflow-container` for important information to keep in
mind:
https://docs.racket-lang.org/gui/area-container___.html?q=reflow#%28meth._%28%28%28lib._mred%2Fmain..rkt%29._area-container~3c~25~3e%29._reflow-container%29%29

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to