<div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
                                        Hi, there.<div><br></div><div>Replace "pluggableInputFieldSpec" with "pluggableTextSpec" and it will work.</div><div><br></div><div>There is currently no support for one-line text fields without line breaks growing from right-to-left, only from left-to-right. I think one could build this ... then again, once the content is larger than the view, one would not see left-flush or right-flush anyway. Hmm....</div><div><br></div><div>You can also reconfigure the input field to support soft line breaks:</div><div><br></div><div><div><span style="font-size: 13.3333px">builder:=MorphicToolBuilder new.</span></div><div><span style="font-size: 13.3333px">model:=ValueHolder new contents: 'sample text'.</span></div><div><span style="font-size: 13.3333px">spec:=builder pluggableInputFieldSpec new</span></div><div><span style="font-size: 13.3333px"><span style="white-space:pre">  </span>getText: #contents; setText: #contents:; model: model;</span></div><div><span style="font-size: 13.3333px"><span style="white-space:pre">        </span>textStyle: TextStyle default copy rightFlush;</span></div><div><span style="font-size: 13.3333px"><span style="white-space:pre"> </span>softLineWrap: true.</span></div><div><span style="font-size: 13.3333px">widget:=builder build: spec.</span></div><div><span style="font-size: 13.3333px">"widget textMorph rightFlush. -- not needed, see above"</span></div><div><span style="font-size: 13.3333px">widget openInWorld.</span></div></div><div><br></div><div>Best,</div><div>Marcel</div><div class="mb_sig"></div>
                                        <blockquote class="history_container" type="cite" style="border-left-style: solid;border-width: 1px;margin-top: 20px;margin-left: 0px;padding-left: 10px;min-width: 500px">
                        <p style="color: #AAAAAA; margin-top: 10px;">Am 22.03.2022 14:59:05 schrieb Marcel Taeumel <marcel.taeumel@hpi.de>:</p><div style="font-family:Arial,Helvetica,sans-serif"><div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
                                        Hi, there.<div><br></div><div>Let me check. Both rightFlush and centered work when changed via the menu.</div><div><br></div><div>Best,</div><div>Marcel</div><div class="mb_sig"></div><blockquote class="history_container" type="cite" style="border-left-style: solid;border-width: 1px;margin-top: 20px;margin-left: 0px;padding-left: 10px;min-width: 500px">
                        <p style="color: #AAAAAA; margin-top: 10px;">Am 22.03.2022 14:18:38 schrieb Nicolas Cellier <nicolas.cellier.aka.nice@gmail.com>:</p><div style="font-family:Arial,Helvetica,sans-serif">
<div dir="ltr"><div>Indeed, the paddingWidth (which is the available space remaining on the TextLine) appears to be zero, so both centered and rightFlush won't work.</div><div>Normally, the CompositionScanner is setting the paddingWidth for each line at composition time (on various stopConditions endOfRun, cr, etc...).</div><div>Apparently, this does not happen here, because there seems to be no composition...<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mar. 22 mars 2022 à 09:36, Vaidotas Didžbalis <<a href="mailto:vaidasd@gmail.com">vaidasd@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex;border-left: 1px solid rgb(204,204,204);padding-left: 1ex;min-width: 500px"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hello,</div><div>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?</div><div>regards, Vaidotas </div><div><br></div><div>builder:=MorphicToolBuilder new.</div><div>model:=ValueHolder new contents: 'sample text'.</div><div>spec:=builder pluggableInputFieldSpec new getText: #contents; setText: #contents:;  model: model.</div><div>widget:=builder build: spec.</div><div>widget textMorph rightFlush.</div><div>widget openInWorld.</div></div></div></div>
<br>
</blockquote></div>
</div></blockquote>
                                        </div></div></blockquote></div>