[Cuis-dev] TextModelMorph size
Mark Volkmann
r.mark.volkmann at gmail.com
Fri Jun 14 07:58:29 PDT 2024
On Fri, Jun 14, 2024 at 8:05 AM Mark Volkmann <r.mark.volkmann at gmail.com>
wrote:
> This morph seems to have a default height that is around 4 lines.
> Is there a way to tell it to be the height of one line based on the
> current font size?
> Can I set the width based on an approximate number of characters it should
> display?
>
I see that I can send this to any morph:
morphExtent: 160 at 18
Is that the best approach for sizing a TextModelMorph?
--
R. Mark Volkmann
Object Computing, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240614/72cea517/attachment.htm>
More information about the Cuis-dev
mailing list