[squeak-dev] rightFlush in TextMorph

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Tue Mar 22 13:18:14 UTC 2022

Indeed, the paddingWidth (which is the available space remaining on the
TextLine) appears to be zero, so both centered and rightFlush won't work.
Normally, the CompositionScanner is setting the paddingWidth for each line
at composition time (on various stopConditions endOfRun, cr, etc...).
Apparently, this does not happen here, because there seems to be no

Le mar. 22 mars 2022 à 09:36, Vaidotas Didžbalis <vaidasd at gmail.com> a
écrit :

> Hello,
> Executing lines below produces right aligned text field in Squeak 4.5, but
> does not Squeak v4.6 or any later version, I wander is this a bug? Anyone
> using right aligned input fields in Squeak?
> regards, Vaidotas
> builder:=MorphicToolBuilder new.
> model:=ValueHolder new contents: 'sample text'.
> spec:=builder pluggableInputFieldSpec new getText: #contents; setText:
> #contents:;  model: model.
> widget:=builder build: spec.
> widget textMorph rightFlush.
> widget openInWorld.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20220322/4ed4c2cc/attachment.html>

More information about the Squeak-dev mailing list