[Cuis-dev] TextParagrpaphMorph suggestion

Juan Vuletich juan at cuis.st
Thu Jul 27 10:39:05 PDT 2023


On 7/26/2023 8:37 AM, Hilaire Fernandes via Cuis-dev wrote:
>
> Hi Juan,
>
> The text paragraph morph extent is not right by default, it is a bit 
> too large in height, observe read border of the text paragraph below:
>
> paragraph
>
> I can manually adjust it but it is may be not the expected behavior.
>
> Thanks
>
> Hilaire
>
>
> Le 03/07/2023 à 22:03, Juan Vuletich via Cuis-dev a écrit :
>> Just pushed this before I forget.
>>
>> We can modify it later if needed.

Hi Hilaire,

This resulted in a few tweaks to TextParagraphMorph, that I already 
pushed to GitHub. I added #setHeightOnContent that is off by default. 
Please turn it on for these. It also needs to be turned on for 
TextParagraphMorphs inside a PluggableScrollPane. The automatic shrink 
on setting contents is also optional now (and off by default). I think 
these options will make TextParagraphMorph useful in a wider set of 
contexts. I also fixed #borderWidth: to adjust appropriately.

Please see the examples in the class comment, and report on any problem 
you find.

Thanks,

-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230727/909afcf6/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 8270 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230727/909afcf6/attachment-0001.png>


More information about the Cuis-dev mailing list