[squeak-dev] rightFlush in TextMorph
marcel.taeumel at hpi.de
Tue Mar 22 13:59:05 UTC 2022
Let me check. Both rightFlush and centered work when changed via the menu.
Am 22.03.2022 14:18:38 schrieb Nicolas Cellier <nicolas.cellier.aka.nice at gmail.com>:
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 composition...
Le mar. 22 mars 2022 à 09:36, Vaidotas Didžbalis <vaidasd at gmail.com [mailto:vaidasd at gmail.com]> a écrit :
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?
model:=ValueHolder new contents: 'sample text'.
spec:=builder pluggableInputFieldSpec new getText: #contents; setText: #contents:; model: model.
widget:=builder build: spec.
widget textMorph rightFlush.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev